mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Call unnamed parameters properly
This commit is contained in:
parent
94c97a8f25
commit
8c71257a4b
@ -131,7 +131,7 @@ class ModuleStateTest(TestCase, LoaderModuleMockMixin):
|
||||
'''
|
||||
with patch.dict(module.__salt__, {CMD: _mocked_func_named}):
|
||||
with patch.dict(module.__opts__, {'use_superseded': ['module.run']}):
|
||||
ret = module.run(**{CMD: [{'name': 'Fred'}]})
|
||||
ret = module.run(**{CMD: ['Fred']})
|
||||
assert ret['comment'] == '{0}: Success'.format(CMD)
|
||||
assert ret['result']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user