From b2cb3153f140350c9f908df7fc14e05a8b773899 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 3 Sep 2015 14:25:43 -0400 Subject: [PATCH] Fix unit tests for PlayIterator changes regarding fact gathering --- test/units/executor/test_play_iterator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/units/executor/test_play_iterator.py b/test/units/executor/test_play_iterator.py index 3b30f9c11c..411b0ed291 100644 --- a/test/units/executor/test_play_iterator.py +++ b/test/units/executor/test_play_iterator.py @@ -68,12 +68,16 @@ class TestPlayIterator(unittest.TestCase): inventory.get_hosts.return_value = hosts inventory.filter_hosts.return_value = hosts + mock_var_manager = MagicMock() + mock_var_manager._fact_cache = dict() + play_context = PlayContext(play=p._entries[0]) itr = PlayIterator( inventory=inventory, play=p._entries[0], play_context=play_context, + variable_manager=mock_var_manager, all_vars=dict(), )