From 264a43083ee03b102eb3d03457c38414ab63ae7a Mon Sep 17 00:00:00 2001 From: Dries Peeters Date: Mon, 20 Oct 2025 19:55:03 +0200 Subject: [PATCH] Update --- app/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 0ea9e96..50e818c 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -305,13 +305,17 @@ def create_app(config=None): @app.before_request def check_setup_required(): try: + # Skip setup check in testing mode + if app.config.get('TESTING'): + return + # Skip setup check for these routes - skip_routes = ['setup.initial_setup', 'static', 'auth.login', 'auth.logout'] + skip_routes = ['setup.initial_setup', 'static', 'auth.login', 'auth.logout', 'main.health_check', 'main.readiness_check'] if request.endpoint in skip_routes: return - # Skip for assets - if request.path.startswith('/static/'): + # Skip for assets and health checks + if request.path.startswith('/static/') or request.path.startswith('/_'): return # Check if setup is complete