@@ -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, expected_called" ,
79
+ "disable_pip_version_check, no_index, keyring, 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 , True ),
84
- (False , True , False ),
85
- (True , False , False ),
86
- (True , True , False ),
83
+ (False , False , False , True ),
84
+ (False , True , False , False ),
85
+ (True , False , False , False ),
86
+ (True , True , False , False ),
87
87
],
88
88
)
89
89
@mock .patch ("pip._internal.cli.req_command.pip_self_version_check" )
@@ -92,6 +92,7 @@ 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 ,
95
96
expected_called : bool ,
96
97
) -> None :
97
98
"""
@@ -103,6 +104,7 @@ def test_index_group_handle_pip_version_check(
103
104
options = command .parser .get_default_values ()
104
105
options .disable_pip_version_check = disable_pip_version_check
105
106
options .no_index = no_index
107
+ options .keyring = keyring
106
108
107
109
command .handle_pip_version_check (options )
108
110
if expected_called :
0 commit comments