diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2016-11-23 22:30:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-23 22:30:46 +0100 |
commit | 778c983ef9f9cad3d8fd47c8a4efcceeb45fa3b2 (patch) | |
tree | f45ce6a07464d6323450e270a6bf80b5e59c4dce /test/units/vars/test_variable_manager.py | |
parent | Fix auth in collins.py inventory (diff) | |
download | ansible-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/test_variable_manager.py')
-rw-r--r-- | test/units/vars/test_variable_manager.py | 13 |
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='.')) |