1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

fix api test

This commit is contained in:
Wayne Witzel III 2016-06-10 14:08:52 -04:00
parent e243c8319d
commit 358998c4b4

View File

@ -147,8 +147,7 @@ def test_credential_detail(post, get, organization, org_admin):
response = get(reverse('api:credential_detail', args=(response.data['id'],)), org_admin)
assert response.status_code == 200
summary_fields = response.data['summary_fields']
assert 'owners' in summary_fields
assert summary_fields['owners'][0]['id'] == organization.id
assert 'organization' in summary_fields
related_fields = response.data['related']
assert 'organization' in related_fields