mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Update feature flag list test (#15830)
This commit is contained in:
parent
e7440c6074
commit
69a60493a3
@ -4,13 +4,14 @@ from django.test import override_settings
|
||||
from awx.main.models import User
|
||||
|
||||
|
||||
@override_settings(FLAGS={})
|
||||
@pytest.mark.django_db
|
||||
def test_feature_flags_list_endpoint(get):
|
||||
bob = User.objects.create(username='bob', password='test_user', is_superuser=False)
|
||||
|
||||
url = "/api/v2/feature_flags_state/"
|
||||
response = get(url, user=bob, expect=200)
|
||||
assert len(response.data) == 1
|
||||
assert len(response.data) == 0
|
||||
|
||||
|
||||
@override_settings(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user