coming together
This commit is contained in:
11
tests/conftest.py
Normal file
11
tests/conftest.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import os
|
||||
|
||||
|
||||
# Ensure required settings exist for app modules imported during tests
|
||||
os.environ.setdefault("SECRET_KEY", "x" * 32)
|
||||
# Use a file-based SQLite DB so metadata.create_all and sessions share state
|
||||
os.environ.setdefault("DATABASE_URL", "sqlite:////tmp/delphi_test.sqlite")
|
||||
os.environ.setdefault("PYTEST_RUNNING", "1")
|
||||
os.environ.setdefault("DISABLE_LOG_ENQUEUE", "1")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user