Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
a707c4b8
Unverified
Commit
a707c4b8
authored
Jan 12, 2022
by
Matheus Felipe
Browse files
Test get_host_from_link with invalid argument
parent
ef8c4f04
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/tests/test_validate_links.py
View file @
a707c4b8
...
...
@@ -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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment