-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9207 from NoahGorny/fix-redact-url-from-help
- Loading branch information
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fix crash when logic for redacting authentication information from URLs | ||
in ``--help`` is given a list of strings, instead of a single string. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,17 @@ def test_help_command_redact_auth_from_url(script): | |
assert 'secret' not in result.stdout | ||
|
||
|
||
def test_help_command_redact_auth_from_url_with_extra_index_url(script): | ||
""" | ||
Test `help` on various subcommands redact auth from url with extra index url | ||
""" | ||
script.environ['PIP_INDEX_URL'] = 'https://user:[email protected]' | ||
script.environ['PIP_EXTRA_INDEX_URL'] = 'https://user:[email protected]' | ||
result = script.pip('install', '--help') | ||
assert result.returncode == SUCCESS | ||
assert 'secret' not in result.stdout | ||
|
||
|
||
def test_help_commands_equally_functional(in_memory_pip): | ||
""" | ||
Test if `pip help` and 'pip --help' behave the same way. | ||
|