Skip to content

Commit 4768497

Browse files
committed
Revert "Add keyring option to failing test"
This reverts commit aba9e96.
1 parent a36d18d commit 4768497

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/unit/test_commands.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ def has_option_no_index(command: Command) -> bool:
7676

7777
@pytest.mark.parametrize("command_name", EXPECTED_INDEX_GROUP_COMMANDS)
7878
@pytest.mark.parametrize(
79-
"disable_pip_version_check, no_index, keyring, expected_called",
79+
"disable_pip_version_check, no_index, expected_called",
8080
[
8181
# pip_self_version_check() is only called when both
8282
# disable_pip_version_check and no_index are False.
83-
(False, False, False, True),
84-
(False, True, False, False),
85-
(True, False, False, False),
86-
(True, True, False, False),
83+
(False, False, True),
84+
(False, True, False),
85+
(True, False, False),
86+
(True, True, False),
8787
],
8888
)
8989
@mock.patch("pip._internal.cli.req_command.pip_self_version_check")
@@ -92,7 +92,6 @@ def test_index_group_handle_pip_version_check(
9292
command_name: str,
9393
disable_pip_version_check: bool,
9494
no_index: bool,
95-
keyring: bool,
9695
expected_called: bool,
9796
) -> None:
9897
"""
@@ -104,7 +103,6 @@ def test_index_group_handle_pip_version_check(
104103
options = command.parser.get_default_values()
105104
options.disable_pip_version_check = disable_pip_version_check
106105
options.no_index = no_index
107-
options.keyring = keyring
108106

109107
command.handle_pip_version_check(options)
110108
if expected_called:

0 commit comments

Comments
 (0)