@@ -76,14 +76,14 @@ def has_option_no_index(command: Command) -> bool:
76
76
77
77
@pytest .mark .parametrize ("command_name" , EXPECTED_INDEX_GROUP_COMMANDS )
78
78
@pytest .mark .parametrize (
79
- "disable_pip_version_check, no_index, keyring, expected_called" ,
79
+ "disable_pip_version_check, no_index, expected_called" ,
80
80
[
81
81
# pip_self_version_check() is only called when both
82
82
# 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 ),
87
87
],
88
88
)
89
89
@mock .patch ("pip._internal.cli.req_command.pip_self_version_check" )
@@ -92,7 +92,6 @@ def test_index_group_handle_pip_version_check(
92
92
command_name : str ,
93
93
disable_pip_version_check : bool ,
94
94
no_index : bool ,
95
- keyring : bool ,
96
95
expected_called : bool ,
97
96
) -> None :
98
97
"""
@@ -104,7 +103,6 @@ def test_index_group_handle_pip_version_check(
104
103
options = command .parser .get_default_values ()
105
104
options .disable_pip_version_check = disable_pip_version_check
106
105
options .no_index = no_index
107
- options .keyring = keyring
108
106
109
107
command .handle_pip_version_check (options )
110
108
if expected_called :
0 commit comments