mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Attempt at fixing strategy unit test failures on py2.6 and py3
This commit is contained in:
parent
1116bc6ca6
commit
6109f70397
1 changed files with 1 additions and 3 deletions
|
@ -377,9 +377,7 @@ class TestStrategyBase(unittest.TestCase):
|
|||
strategy_base._inventory = mock_inventory
|
||||
strategy_base._notified_handlers = {"test handler": [mock_host]}
|
||||
|
||||
mock_return_task = MagicMock(Handler)
|
||||
mock_return_host = MagicMock(Host)
|
||||
task_result = TaskResult(mock_return_host, mock_return_task, dict(changed=False))
|
||||
task_result = TaskResult(Host('host01'), Handler(), dict(changed=False))
|
||||
tqm._final_q.put(('host_task_ok', task_result))
|
||||
|
||||
result = strategy_base.run_handlers(iterator=mock_iterator, play_context=mock_play_context)
|
||||
|
|
Loading…
Reference in a new issue