mirror of
https://github.com/ansible/awx.git
synced 2026-05-21 07:47:44 -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:
@@ -23,8 +23,6 @@ def test_create_team(run_module, admin_user):
|
||||
assert result == {
|
||||
"changed": True,
|
||||
"name": "foo_team",
|
||||
"credential_type": "Nexus",
|
||||
"state": "present",
|
||||
"id": team.id if team else None,
|
||||
}
|
||||
team = Team.objects.get(name='foo_team')
|
||||
@@ -50,10 +48,7 @@ def test_modify_team(run_module, admin_user):
|
||||
team.refresh_from_db()
|
||||
result.pop('invocation')
|
||||
assert result == {
|
||||
"state": "present",
|
||||
"changed": True,
|
||||
"name": "foo_team",
|
||||
"credential_type": "Nexus",
|
||||
"id": team.id,
|
||||
}
|
||||
assert team.description == 'fooin around'
|
||||
@@ -66,9 +61,6 @@ def test_modify_team(run_module, admin_user):
|
||||
}, admin_user)
|
||||
result.pop('invocation')
|
||||
assert result == {
|
||||
"credential_type": "Nexus",
|
||||
"name": "foo_team",
|
||||
"id": team.id,
|
||||
"state": "present",
|
||||
"changed": False
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user