mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
test helper: fix parameter passing in creation static method (#9662)
This commit is contained in:
@@ -35,7 +35,7 @@ class Helper(object):
|
||||
test_module = sys.modules[test_module_name]
|
||||
if test_spec is None:
|
||||
test_spec = test_module.__file__.replace('.py', '.yaml')
|
||||
return Helper.from_file(test_module, ansible_module, test_spec)
|
||||
return Helper.from_file(test_module, ansible_module, test_spec, mocks=mocks)
|
||||
|
||||
def add_func_to_test_module(self, name, func):
|
||||
setattr(self.test_module, name, func)
|
||||
|
||||
Reference in New Issue
Block a user