diff options
author | Matt Clay <matt@mystile.com> | 2024-01-03 23:29:38 +0100 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2024-01-03 23:34:20 +0100 |
commit | e1bcb8a534a7144da937bc658d5a59f1de24dd0f (patch) | |
tree | 703eb3577881accc082aa0a8e9daa6db272ef112 /test/units/plugins | |
parent | Revert "Fix older external connection plugins without _sub_plugin declaration... (diff) | |
download | ansible-e1bcb8a534a7144da937bc658d5a59f1de24dd0f.tar.xz ansible-e1bcb8a534a7144da937bc658d5a59f1de24dd0f.zip |
Remove unused unit test code
Diffstat (limited to 'test/units/plugins')
-rw-r--r-- | test/units/plugins/action/test_raw.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/units/plugins/action/test_raw.py b/test/units/plugins/action/test_raw.py index 68cdb231a2..9413fdfb15 100644 --- a/test/units/plugins/action/test_raw.py +++ b/test/units/plugins/action/test_raw.py @@ -36,18 +36,14 @@ class TestCopyResultExclude(unittest.TestCase): def tearDown(self): pass - def _build_task(self, params=None): + def _build_task(self): task = MagicMock(Task) task.async_val = False task.diff = False task.check_mode = False task.environment = None - - if params is None: - task.args = {'_raw_params': 'Args1'} - else: - task.args = params + task.args = {'_raw_params': 'Args1'} return task # The current behavior of the raw aciton in regards to executable is currently in question; |