diff options
Diffstat (limited to 'test/units/modules/source_control/test_gitlab_hooks.py')
-rw-r--r-- | test/units/modules/source_control/test_gitlab_hooks.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/units/modules/source_control/test_gitlab_hooks.py b/test/units/modules/source_control/test_gitlab_hooks.py index 2487b963dc..7acb8d66f6 100644 --- a/test/units/modules/source_control/test_gitlab_hooks.py +++ b/test/units/modules/source_control/test_gitlab_hooks.py @@ -10,6 +10,9 @@ from ansible.module_utils import basic import pytest import json +from units.modules.utils import set_module_args + + fake_server_state = [ { "id": 1, @@ -29,12 +32,6 @@ fake_server_state = [ ] -def set_module_args(args): - """prepare arguments so that they will be picked up during module creation""" - args = json.dumps({'ANSIBLE_MODULE_ARGS': args}) - basic._ANSIBLE_ARGS = to_bytes(args) - - class FakeReader: def __init__(self, object): self.content = json.dumps(object, sort_keys=True) |