mirror of
https://github.com/ansible/awx.git
synced 2026-07-29 08:59:55 -02:30
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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user