From 5796df0531c97bdd34aebb5dadf1367b65ccdf47 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:47:39 -0600 Subject: [PATCH] Cleanup (once again) --- src/registrar/context_processors.py | 8 ++++++++ src/registrar/tests/test_reports.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/registrar/context_processors.py b/src/registrar/context_processors.py index bffa6d5c4..861a4e701 100644 --- a/src/registrar/context_processors.py +++ b/src/registrar/context_processors.py @@ -50,6 +50,14 @@ def org_user_status(request): } +def add_path_to_context(request): + return {"path": getattr(request, "path", None)} + + +def add_has_profile_feature_flag_to_context(request): + return {"has_profile_feature_flag": flag_is_active(request, "profile_feature")} + + def portfolio_permissions(request): """Make portfolio permissions for the request user available in global context""" try: diff --git a/src/registrar/tests/test_reports.py b/src/registrar/tests/test_reports.py index 5b2112f4f..6b8cb8882 100644 --- a/src/registrar/tests/test_reports.py +++ b/src/registrar/tests/test_reports.py @@ -314,7 +314,7 @@ class ExportDataTest(MockDbForIndividualTests, MockEppLib): self.assertEqual(csv_content, expected_content) @less_console_noise_decorator - @override_flag("profile_feature", active=True) + @override_flag("organization_feature", active=True) def test_domain_data_type_user_with_portfolio(self): """Tests DomainDataTypeUser export with portfolio permissions"""