Consolidate related field access checks into BaseAccess method

This commit is contained in:
AlanCoding
2016-11-01 13:33:16 -04:00
parent 7167fd7c6b
commit 5c2c46c5aa
2 changed files with 96 additions and 106 deletions

View File

@@ -121,7 +121,7 @@ def test_create_project_null_organization(post, organization, admin):
@pytest.mark.django_db()
def test_create_project_null_organization_xfail(post, organization, org_admin):
post(reverse('api:project_list'), { 'name': 't', 'organization': None}, org_admin, expect=400)
post(reverse('api:project_list'), { 'name': 't', 'organization': None}, org_admin, expect=403)
@pytest.mark.django_db()
def test_patch_project_null_organization(patch, organization, project, admin):