Credential can_change updates for organization related field

This commit is contained in:
AlanCoding
2016-07-05 12:33:19 -04:00
parent ab0fd8ddb1
commit c21d560cfd
3 changed files with 54 additions and 7 deletions

View File

@@ -159,8 +159,7 @@ def machine_credential():
@pytest.fixture
def org_credential(organization, credential):
credential.admin_role.parents.add(organization.admin_role)
return credential
return Credential.objects.create(kind='aws', name='test-cred', organization=organization)
@pytest.fixture
def inventory(organization):