mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
removing test (already had coverage), fixing test
This commit is contained in:
parent
4d3d38c4ac
commit
994065d495
@ -1,11 +0,0 @@
|
||||
import pytest
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_team_role_list_no_read_role(organization_factory, admin, get):
|
||||
objects = organization_factory("test_org", teams=["test_team"])
|
||||
response = get(reverse('api:team_roles_list', args=(objects.teams.test_team.pk,)), admin)
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.data['results'] == []
|
@ -183,7 +183,7 @@ def test_get_teams_roles_list(get, team, organization, admin):
|
||||
assert response.status_code == 200
|
||||
roles = response.data
|
||||
|
||||
assert roles['count'] == 2
|
||||
assert roles['count'] == 1
|
||||
assert roles['results'][0]['id'] == organization.admin_role.id or roles['results'][1]['id'] == organization.admin_role.id
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user