tests: test init

This commit is contained in:
Chris Milne 2026-05-29 15:18:10 +01:00
parent 1a81be210a
commit 19145271ae
5 changed files with 78 additions and 4 deletions

View file

@ -67,7 +67,7 @@ app.add_middleware(
allow_headers=settings.CORS_HEADERS,
)
if settings.DISABLE_AUTH and (settings.ENVIRONMENT == Environment.LOCAL or settings.ENVIRONMENT == Environment.TESTING):
if settings.DISABLE_AUTH and (settings.ENVIRONMENT == Environment.LOCAL):
app.dependency_overrides[get_current_user] = get_dev_user