Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-pettinga committed Dec 30, 2024
1 parent 3af99c1 commit 1107011
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_frontend/test_view_a_licence/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ def base_host(self) -> str:

@pytest.fixture(autouse=True, scope="function")
def bypass_login(monkeypatch, staff_user):
"""Overrides the get_user function to always return the staff user without authentication.
Effectively bypasses the login process for all frontend tests.
"""

def patched_get_user(request):
return staff_user

Expand Down

0 comments on commit 1107011

Please sign in to comment.