mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-02 09:13:25 +02:00
Fix issues with org_user_status global context and logo_clickable profile context
This commit is contained in:
parent
a7c29f4d21
commit
dcb63d1947
11 changed files with 132 additions and 127 deletions
|
@ -429,6 +429,10 @@ class ViewsTest(TestCase):
|
|||
# Create a mock request
|
||||
request = self.factory.get("/some-url")
|
||||
request.session = {"acr_value": ""}
|
||||
# Mock user and its attributes
|
||||
mock_user = MagicMock()
|
||||
mock_user.is_authenticated = True
|
||||
request.user = mock_user
|
||||
# Ensure that the CLIENT instance used in login_callback is the mock
|
||||
# patch _requires_step_up_auth to return False
|
||||
with patch("djangooidc.views._requires_step_up_auth", return_value=False), patch(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue