diff --git a/tests/test_v54.py b/tests/test_v54.py index de80991..7084bb2 100644 --- a/tests/test_v54.py +++ b/tests/test_v54.py @@ -205,7 +205,14 @@ class TestV54TrashPurge: os.environ["PROJECT_SYNC_ENABLED"] = "false" import app.config - app.config.settings = app.config.Settings() + # In-place mutation, jamais de rebinding : les modules importés plus tôt + # (sso_provisioning, trash, …) gardent une référence à l'objet courant. + _s = app.config.settings + _s.database_url = f"sqlite:///{tmp.name}" + _s.app_secret_key = "test-secret" + _s.rate_limit_enabled = False + _s.backup_enabled = False + _s.project_sync_enabled = False init_db() with get_conn() as conn: