mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-06 19:23:23 +02:00
Cleanup (once again)
This commit is contained in:
parent
a8b362e32e
commit
5796df0531
2 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue