@@ -104,11 +104,11 @@ def test_is_valid_vcs_url(self):
104104 test_cases = [
105105 # Valid URLs
106106 ("https://github.com/example/repo.git" , True ),
107- ("git://github.com/example/repo.git" , True ),
108- ("ssh://git@github.com/example/repo.git" , True ),
109- ("git+https://github.com/example/repo.git" , True ),
110- ("git+ssh://git@github.com/example/repo.git" , True ),
111107 # Invalid URLs
108+ ("git://github.com/example/repo.git" , False ),
109+ ("ssh://git@github.com/example/repo.git" , False ),
110+ ("git+https://github.com/example/repo.git" , False ),
111+ ("git+ssh://git@github.com/example/repo.git" , False ),
112112 ("git@github.com:example/repo.git" , False ),
113113 ("user@localhost:path/to/repo.git" , False ),
114114 ("hg@bitbucket.org:owner/repo" , False ),
@@ -118,6 +118,9 @@ def test_is_valid_vcs_url(self):
118118 ("git@github.com:repo.git\n rm -rf /" , False ),
119119 ("https://github.com/ repo.git" , False ),
120120 (" https://github.com/repo.git" , False ),
121+ ("https://" , False ),
122+ ("https:///repo.git" , False ),
123+ ("https://?foo=bar" , False ),
121124 ("" , False ),
122125 (None , False ),
123126 ]
0 commit comments