Browse Source

Test get_host_from_link with invalid argument

pull/3011/head
Matheus Felipe 2 years ago
parent
commit
a707c4b89d
No known key found for this signature in database GPG Key ID: AA785C523274872F
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      scripts/tests/test_validate_links.py

+ 3
- 0
scripts/tests/test_validate_links.py View File

@@ -65,3 +65,6 @@ class TestValidateLinks(unittest.TestCase):
self.assertNotIn('/', host)
self.assertNotIn('?', host)
self.assertNotIn('#', host)

with self.assertRaises(TypeError):
get_host_from_link()

Loading…
Cancel
Save