mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 07:55:05 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -11,7 +11,9 @@ from collections.abc import MutableMapping
|
|||
import pytest
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils import deps
|
||||
from ansible_collections.community.internal_test_tools.tests.unit.plugins.modules.utils import set_module_args as _set_module_args
|
||||
from ansible_collections.community.internal_test_tools.tests.unit.plugins.modules.utils import (
|
||||
set_module_args as _set_module_args,
|
||||
)
|
||||
|
||||
|
||||
def _fix_ansible_args(args):
|
||||
|
|
@ -22,7 +24,7 @@ def _fix_ansible_args(args):
|
|||
if isinstance(args, MutableMapping):
|
||||
return args
|
||||
|
||||
raise Exception('Malformed data to the patch_ansible_module pytest fixture')
|
||||
raise Exception("Malformed data to the patch_ansible_module pytest fixture")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
@ -39,6 +41,7 @@ def patch_ansible_module_uthelper(request):
|
|||
args = _fix_ansible_args(args)
|
||||
with _set_module_args(args):
|
||||
yield
|
||||
|
||||
return _patch
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue