Skip to content

Commit 4f890c8

Browse files
fix: fix test mocks to return correct params
1 parent d02b59f commit 4f890c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/azure-cli-core/azure/cli/core/tests/test_command_registration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def load_command_table(self, args):
230230
if command_table:
231231
module_command_table.update(command_table)
232232
loader.loaders.append(command_loader) # this will be used later by the load_arguments method
233-
return module_command_table, command_loader.command_group_table
233+
return module_command_table, command_loader.command_group_table, command_loader
234234

235235
expected_command_index = {'hello': ['azure.cli.command_modules.hello', 'azext_hello2', 'azext_hello1'],
236236
'extra': ['azure.cli.command_modules.extra']}

src/azure-cli-core/azure/cli/core/tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def load_command_table(self, args):
188188
if command_table:
189189
module_command_table.update(command_table)
190190
loader.loaders.append(command_loader) # this will be used later by the load_arguments method
191-
return module_command_table, command_loader.command_group_table
191+
return module_command_table, command_loader.command_group_table, command_loader
192192

193193
@mock.patch('importlib.import_module', _mock_import_lib)
194194
@mock.patch('pkgutil.iter_modules', _mock_iter_modules)

0 commit comments

Comments
 (0)