more get_ansible_version test failure fixes

This commit is contained in:
Chris Meyers
2020-08-27 19:05:40 -04:00
committed by Ryan Petrello
parent 72fc314da1
commit 924273f589

View File

@@ -255,7 +255,7 @@ class TestInventorySourceInjectors:
are named correctly, because Ansible will reject files that do
not have these exact names
"""
injector = InventorySource.injectors[source]('2.7.7')
injector = InventorySource.injectors[source]()
assert injector.filename == filename
@pytest.mark.parametrize('source,proper_name', [
@@ -269,7 +269,7 @@ class TestInventorySourceInjectors:
('tower', 'awx.awx.tower'),
])
def test_plugin_proper_names(self, source, proper_name):
injector = InventorySource.injectors[source]('2.9')
injector = InventorySource.injectors[source]()
assert injector.get_proper_name() == proper_name