mirror of
https://github.com/ansible/awx.git
synced 2026-03-02 17:28:51 -03:30
Fix flake8 E302 errors second round.
This commit is contained in:
@@ -108,7 +108,6 @@ def test_cant_delete_role(delete, admin):
|
||||
assert response.status_code == 405
|
||||
|
||||
|
||||
|
||||
#
|
||||
# /user/<id>/roles
|
||||
#
|
||||
@@ -260,6 +259,7 @@ def test_get_role(get, admin, role):
|
||||
assert response.status_code == 200
|
||||
assert response.data['id'] == role.id
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_put_role_405(put, admin, role):
|
||||
url = reverse('api:role_detail', args=(role.id,))
|
||||
@@ -434,7 +434,6 @@ def test_role_children(get, team, admin, role):
|
||||
assert response.data['results'][0]['id'] == role.id or response.data['results'][1]['id'] == role.id
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Generics
|
||||
#
|
||||
@@ -458,6 +457,7 @@ def test_ensure_rbac_fields_are_present(organization, get, admin):
|
||||
role = org_role_response.data
|
||||
assert role['related']['organization'] == url
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_ensure_role_summary_is_present(organization, get, user):
|
||||
url = reverse('api:organization_detail', args=(organization.id,))
|
||||
|
||||
Reference in New Issue
Block a user