mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Add failing tests.
This commit is contained in:
parent
d490f75211
commit
b087f261fb
|
@ -665,6 +665,9 @@ def test_make_vcs_requirement_url(args, expected):
|
|||
('user:pass@word@example.com', ('example.com', ('user', 'pass@word'))),
|
||||
# Test the password containing a : symbol.
|
||||
('user:pass:word@example.com', ('example.com', ('user', 'pass:word'))),
|
||||
# Test URL-encoded reserved characters.
|
||||
('user%3Aname:%23%40%5E@example.com',
|
||||
('example.com', ('user:name', '#@^'))),
|
||||
])
|
||||
def test_split_auth_from_netloc(netloc, expected):
|
||||
actual = split_auth_from_netloc(netloc)
|
||||
|
|
|
@ -192,6 +192,9 @@ def test_git__get_netloc_and_auth(args, expected):
|
|||
(('user@example.com', 'https'), ('example.com', ('user', None))),
|
||||
# Test https with username and password.
|
||||
(('user:pass@example.com', 'https'), ('example.com', ('user', 'pass'))),
|
||||
# Test https with URL-encoded reserved characters.
|
||||
(('user%3Aname:%23%40%5E@example.com', 'https'),
|
||||
('example.com', ('user:name', '#@^'))),
|
||||
# Test ssh with username and password.
|
||||
(('user:pass@example.com', 'ssh'),
|
||||
('user:pass@example.com', (None, None))),
|
||||
|
|
Loading…
Reference in a new issue