From 994065d49543e87d333a735eac633b92cb93a02f Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Tue, 28 Jun 2016 11:19:18 -0400 Subject: [PATCH] removing test (already had coverage), fixing test --- awx/main/tests/functional/api/test_team.py | 11 ----------- awx/main/tests/functional/test_rbac_api.py | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 awx/main/tests/functional/api/test_team.py diff --git a/awx/main/tests/functional/api/test_team.py b/awx/main/tests/functional/api/test_team.py deleted file mode 100644 index 671b664663..0000000000 --- a/awx/main/tests/functional/api/test_team.py +++ /dev/null @@ -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'] == [] diff --git a/awx/main/tests/functional/test_rbac_api.py b/awx/main/tests/functional/test_rbac_api.py index b3c75a4a2d..5e270c174f 100644 --- a/awx/main/tests/functional/test_rbac_api.py +++ b/awx/main/tests/functional/test_rbac_api.py @@ -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