From 7e4a39964ef26d588e2b2dcb7408f47766563296 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 1 Feb 2025 15:01:57 +0100 Subject: [PATCH] [PR #9662/4d384bd7 backport][stable-10] test helper: fix parameter passing in creation static method (#9663) test helper: fix parameter passing in creation static method (#9662) (cherry picked from commit 4d384bd74a116b0855e7870e149a25e44c0bd296) Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> --- tests/unit/plugins/modules/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/plugins/modules/helper.py b/tests/unit/plugins/modules/helper.py index 8071bc2aa9..2464f280de 100644 --- a/tests/unit/plugins/modules/helper.py +++ b/tests/unit/plugins/modules/helper.py @@ -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)