mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
ansible_playbook_python (#18530)
* ansible_playbook_python fixes #18471 * fix tests * removed dupe
This commit is contained in:
parent
21813ed83e
commit
778c983ef9
5 changed files with 11 additions and 9 deletions
|
@ -47,14 +47,11 @@ class TestVariableManager(unittest.TestCase):
|
|||
|
||||
v = VariableManager()
|
||||
vars = v.get_vars(loader=fake_loader, use_cache=False)
|
||||
if 'omit' in vars:
|
||||
del vars['omit']
|
||||
if 'vars' in vars:
|
||||
del vars['vars']
|
||||
if 'ansible_version' in vars:
|
||||
del vars['ansible_version']
|
||||
if 'ansible_check_mode' in vars:
|
||||
del vars['ansible_check_mode']
|
||||
|
||||
#FIXME: not sure why we remove all and only test playbook_dir
|
||||
for remove in ['omit', 'vars', 'ansible_version', 'ansible_check_mode', 'ansible_playbook_python']:
|
||||
if remove in vars:
|
||||
del vars[remove]
|
||||
|
||||
self.assertEqual(vars, dict(playbook_dir='.'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue