Call unnamed parameters properly

This commit is contained in:
Bo Maryniuk 2017-07-12 17:22:46 +02:00
parent 94c97a8f25
commit 8c71257a4b

View File

@ -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']