mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -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:
@@ -25,11 +25,9 @@ def test_create_group(run_module, admin_user):
|
||||
|
||||
result.pop('invocation')
|
||||
assert result == {
|
||||
'credential_type': 'Nexus',
|
||||
'id': group.id,
|
||||
'name': 'Test Group',
|
||||
'changed': True,
|
||||
'state': 'present'
|
||||
}
|
||||
|
||||
|
||||
@@ -54,8 +52,5 @@ def test_tower_group_idempotent(run_module, admin_user):
|
||||
result.pop('invocation')
|
||||
assert result == {
|
||||
'id': group.id,
|
||||
'credential_type': 'Nexus',
|
||||
'name': 'Test Group',
|
||||
'changed': False, # idempotency assertion
|
||||
'state': 'present'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user