summaryrefslogtreecommitdiffstats
path: root/test/units/vars
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2016-11-23 22:30:46 +0100
committerGitHub <noreply@github.com>2016-11-23 22:30:46 +0100
commit778c983ef9f9cad3d8fd47c8a4efcceeb45fa3b2 (patch)
treef45ce6a07464d6323450e270a6bf80b5e59c4dce /test/units/vars
parentFix auth in collins.py inventory (diff)
downloadansible-778c983ef9f9cad3d8fd47c8a4efcceeb45fa3b2.tar.xz
ansible-778c983ef9f9cad3d8fd47c8a4efcceeb45fa3b2.zip
ansible_playbook_python (#18530)
* ansible_playbook_python fixes #18471 * fix tests * removed dupe
Diffstat (limited to 'test/units/vars')
-rw-r--r--test/units/vars/test_variable_manager.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/test/units/vars/test_variable_manager.py b/test/units/vars/test_variable_manager.py
index 3c3c8e9c62..659ca72c85 100644
--- a/test/units/vars/test_variable_manager.py
+++ b/test/units/vars/test_variable_manager.py
@@ -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='.'))