changed guidanced to best practices

This commit is contained in:
Beverly Nguyen
2024-10-24 17:03:45 -07:00
parent 4b85ae6493
commit 2bbc58c8af
9 changed files with 19 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ from flask import url_for
"roadmap",
"features",
"documentation",
"guidance",
"best_practices",
"clear_goals",
"rules_and_regulations",
"establish_trust",
@@ -37,11 +37,11 @@ def test_static_pages(client_request, mock_get_organization_by_domain, view, moc
# Function to check if a view is feature-flagged and should return 404 when disabled
def is_feature_flagged(view):
feature_guidance_enabled = (
os.getenv("FEATURE_GUIDANCE_ENABLED", "false").lower() == "true"
feature_best_practices_enabled = (
os.getenv("FEATURE_BEST_PRACTICES_ENABLED", "false").lower() == "true"
)
feature_flagged_views = [
"guidance",
"best_practices",
"clear_goals",
"rules_and_regulations",
"establish_trust",
@@ -49,7 +49,7 @@ def test_static_pages(client_request, mock_get_organization_by_domain, view, moc
"multiple_languages",
"benchmark_performance",
]
return not feature_guidance_enabled and view in feature_flagged_views
return not feature_best_practices_enabled and view in feature_flagged_views
request = partial(client_request.get, "main.{}".format(view))