Skip to content

Commit 6c902f5

Browse files
new (vcs.git): test for parse_url with string that should fail
1 parent bb8bb1d commit 6c902f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/vcs/test_git.py

+7
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,10 @@ def test_parse_url(url, parsed):
236236
assert parsed.rev == result.rev
237237
assert parsed.url == result.url
238238
assert parsed.user == result.user
239+
240+
241+
def test_parse_url_should_fail():
242+
url = "https://" + "@" * 64 + "!"
243+
244+
with pytest.raises(ValueError):
245+
result = ParsedUrl.parse(url)

0 commit comments

Comments
 (0)