mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
test helper: create static methods .from_file() and .from_list() (#7239)
create static methods .from_file() and .from_list()
This commit is contained in:
parent
bc9dca4bc8
commit
bdf8852e8d
9 changed files with 40 additions and 37 deletions
|
@ -8,8 +8,8 @@ __metaclass__ = type
|
|||
|
||||
import pytest
|
||||
|
||||
from .cmd_runner_test_utils import CmdRunnerTestHelper, ModuleTestCase, RunCmdCall
|
||||
from ansible_collections.community.general.plugins.modules import snap as module
|
||||
from .helper import CmdRunnerTestHelper, ModuleTestCase, RunCmdCall
|
||||
from ansible_collections.community.general.plugins.modules import snap
|
||||
|
||||
|
||||
issue_6803_status_out = """Name Version Rev Tracking Publisher Notes
|
||||
|
@ -444,8 +444,7 @@ TEST_CASES = [
|
|||
),
|
||||
]
|
||||
|
||||
|
||||
helper = CmdRunnerTestHelper(module.main, test_cases=TEST_CASES)
|
||||
helper = CmdRunnerTestHelper.from_list(snap.main, TEST_CASES)
|
||||
patch_bin = helper.cmd_fixture
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue