mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-07 08:54:01 -07:00
composer: fix command args as list rather than string (#10669)
This commit is contained in:
parent
dfc2a54d16
commit
13bd4b5d82
4 changed files with 59 additions and 9 deletions
|
@ -253,7 +253,7 @@ class RunCommandMock(TestCaseMock):
|
|||
|
||||
def check(self, test_case, results):
|
||||
call_args_list = [(item[0][0], item[1]) for item in self.mock_run_cmd.call_args_list]
|
||||
expected_call_args_list = [(item['command'], item['environ']) for item in self.mock_specs]
|
||||
expected_call_args_list = [(item['command'], item.get('environ', {})) for item in self.mock_specs]
|
||||
print("call args list =\n%s" % call_args_list)
|
||||
print("expected args list =\n%s" % expected_call_args_list)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue