mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix unit tests for PlayIterator changes regarding fact gathering
This commit is contained in:
parent
4ac2bafc4b
commit
b2cb3153f1
1 changed files with 4 additions and 0 deletions
|
@ -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(),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue