2026-02-09 15:49:50 +05:30
|
|
|
# ruff: noqa: INP001
|
|
|
|
|
"""Pytest configuration shared across backend tests."""
|
|
|
|
|
|
2026-02-11 19:10:23 +05:30
|
|
|
import os
|
2026-02-05 14:37:12 +05:30
|
|
|
import sys
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
if str(ROOT) not in sys.path:
|
|
|
|
|
sys.path.insert(0, str(ROOT))
|
2026-02-11 19:10:23 +05:30
|
|
|
|
|
|
|
|
# Tests should fail fast if auth-mode wiring breaks, but still need deterministic
|
|
|
|
|
# defaults during import-time settings initialization.
|
|
|
|
|
os.environ.setdefault("AUTH_MODE", "local")
|
|
|
|
|
os.environ.setdefault("LOCAL_AUTH_TOKEN", "test-local-token")
|