mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Tweak variable manager use in role includes to avoid test failures
This commit is contained in:
@@ -110,12 +110,15 @@ class TestPlay(unittest.TestCase):
|
||||
""",
|
||||
})
|
||||
|
||||
mock_var_manager = MagicMock()
|
||||
mock_var_manager.get_vars.return_value = dict()
|
||||
|
||||
p = Play.load(dict(
|
||||
name="test play",
|
||||
hosts=['foo'],
|
||||
gather_facts=False,
|
||||
roles=['foo'],
|
||||
), loader=fake_loader)
|
||||
), loader=fake_loader, variable_manager=mock_var_manager)
|
||||
|
||||
blocks = p.compile()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user