Optional tower cli (#3)

* Allow running tests without tower_cli

* patch up test mutability

* Fix test import error, warning mock

* flake8 error

Update documentation for non-converted modules
This commit is contained in:
Alan Rominger
2020-02-17 09:20:54 -05:00
committed by beeankha
parent d8513a4e86
commit 2e4e687d69
17 changed files with 67 additions and 45 deletions

View File

@@ -38,8 +38,6 @@ def test_inventory_source_create(run_module, admin_user, base_inventory):
assert result == {
'id': inv_src.id,
'name': 'foo',
'state': 'present',
'credential_type': 'Nexus'
}
@@ -61,9 +59,7 @@ def test_create_inventory_source_implied_org(run_module, admin_user):
result.pop('invocation')
assert result == {
"credential_type": "Nexus",
"name": "Test Inventory Source",
"state": "present",
"id": inv_src.id,
}
@@ -90,9 +86,7 @@ def test_create_inventory_source_multiple_orgs(run_module, admin_user):
result.pop('invocation')
assert result == {
"credential_type": "Nexus",
"name": "Test Inventory Source",
"state": "present",
"id": inv_src.id,
}