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
+5
View File
@@ -42,6 +42,11 @@ def client():
settings.agent_run_timeout_seconds = 30
init_db()
# Fusion #146 : inscription fermée par défaut en production —
# _token() crée ses comptes par /auth/register, la suite ouvre
# donc le réglage explicitement (comme conftest).
from app.services import reglages_acces
reglages_acces.set_reglages_acces(inscription_locale_ouverte=True)
with get_conn() as conn:
conn.execute(
"INSERT OR IGNORE INTO users (login, full_name, email, password_hash, is_admin) "