tests: ouvrir explicitement l'inscription dans les fixtures locales de test_app et test_v66_agent_api (fusion #146)
FlowDeck CI / lint (push) Failing after 1s
FlowDeck CI / test (push) Failing after 1s
FlowDeck CI / docker (push) Skipped
FlowDeck CI / lint (pull_request) Failing after 1s
FlowDeck CI / test (pull_request) Failing after 0s
FlowDeck CI / docker (pull_request) Skipped

This commit is contained in:
Spark
2026-11-07 04:52:51 +00:00
parent 931e4d740b
commit 31fe0c181a
3 changed files with 12 additions and 1 deletions
+6
View File
@@ -31,6 +31,12 @@ def client():
from app.main import app
init_db()
# Fusion #146 : inscription fermée par défaut en production —
# cette suite historique crée ses comptes par /auth/register,
# elle ouvre donc le réglage explicitement (comme conftest).
from app.services import reglages_acces
reglages_acces.set_reglages_acces(inscription_locale_ouverte=True)
# A default user id=1 so tests that reference the implicit user (favorites,
# workspace ownership) satisfy foreign keys without relying on leaked state.
from app.db import get_conn