mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Tweak variable manager use in role includes to avoid test failures
This commit is contained in:
parent
a89412ecb1
commit
dfa33d0f23
3 changed files with 18 additions and 7 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue