Commit b2cb3153 by James Cammarata

Fix unit tests for PlayIterator changes regarding fact gathering

parent 4ac2bafc
...@@ -68,12 +68,16 @@ class TestPlayIterator(unittest.TestCase): ...@@ -68,12 +68,16 @@ class TestPlayIterator(unittest.TestCase):
inventory.get_hosts.return_value = hosts inventory.get_hosts.return_value = hosts
inventory.filter_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]) play_context = PlayContext(play=p._entries[0])
itr = PlayIterator( itr = PlayIterator(
inventory=inventory, inventory=inventory,
play=p._entries[0], play=p._entries[0],
play_context=play_context, play_context=play_context,
variable_manager=mock_var_manager,
all_vars=dict(), all_vars=dict(),
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment