diff --git a/tests/app/main/views/test_index.py b/tests/app/main/views/test_index.py index 8798e4043..3bdd524b8 100644 --- a/tests/app/main/views/test_index.py +++ b/tests/app/main/views/test_index.py @@ -118,9 +118,9 @@ def test_static_pages(client_request, mock_get_organization_by_domain, view, moc if view == "rules_and_regulations": pytest.skip("Skipping test for 'rules_and_regulations' due to missing PDF file.") - # Function to check if a view is feature-flagged and should return 404 when disabled def is_feature_flagged(view): + feature_best_practices_enabled = ( os.getenv("FEATURE_BEST_PRACTICES_ENABLED", "false").lower() == "true" )