diff --git a/test/units/plugins/strategies/test_strategy_base.py b/test/units/plugins/strategies/test_strategy_base.py index 132f3eb847b..8fcdcd0f1b4 100644 --- a/test/units/plugins/strategies/test_strategy_base.py +++ b/test/units/plugins/strategies/test_strategy_base.py @@ -197,6 +197,7 @@ class TestStrategyBase(unittest.TestCase): mock_play.handlers = [mock_handler_block] mock_tqm._notified_handlers = {mock_handler_task: []} + mock_tqm.get_notified_handlers.return_value = mock_tqm._notified_handlers mock_group = MagicMock() mock_group.add_host.return_value = None @@ -225,7 +226,6 @@ class TestStrategyBase(unittest.TestCase): strategy_base._inventory = mock_inventory strategy_base._variable_manager = mock_var_mgr strategy_base._blocked_hosts = dict() - strategy_base._notified_handlers = dict() results = strategy_base._wait_on_pending_results(iterator=mock_iterator) self.assertEqual(len(results), 0)