Fix flake8 E302 errors second round.

This commit is contained in:
Aaron Tan
2016-11-15 21:33:56 -05:00
parent 9e4655419e
commit 2d1a5425d1
20 changed files with 93 additions and 72 deletions

View File

@@ -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,))