We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9768f5 + d5a9af5 commit 16c4cefCopy full SHA for 16c4cef
test/conftest.py
@@ -262,5 +262,5 @@ def git_urls():
262
263
264
@pytest.fixture()
265
-def invalid_urls():
266
- return []
+def invalid_strings():
+ return ['', 'not a valid URL']
test/test_parser.py
@@ -41,9 +41,9 @@ def test_parse(git_urls):
41
assert d['owner'] == result.owner
42
43
44
-def test_parse_raises_on_invalid_url(invalid_urls):
45
- for url in invalid_urls:
46
- p = parser.Parser(url)
+def test_parse_raises_on_invalid_string(invalid_strings):
+ for invalid_string in invalid_strings:
+ p = parser.Parser(invalid_string)
47
with pytest.raises(parser.ParserError):
48
p.parse()
49
0 commit comments