From 69a60493a307d839de936d94679a0fccd85b17c3 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:29:52 -0500 Subject: [PATCH] Update feature flag list test (#15830) --- .../functional/dab_feature_flags/test_feature_flags_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/functional/dab_feature_flags/test_feature_flags_api.py b/awx/main/tests/functional/dab_feature_flags/test_feature_flags_api.py index abd4c5e7c9..490b3ac6e1 100644 --- a/awx/main/tests/functional/dab_feature_flags/test_feature_flags_api.py +++ b/awx/main/tests/functional/dab_feature_flags/test_feature_flags_api.py @@ -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(