fooder-api/fooder/test/conftest.py

17 lines
593 B
Python

import os
# --------------------------------------------------------------------------- #
# Supply minimal dummy env-vars *before* any of our modules are imported. #
# This lets the global `settings = Settings()` call succeed. #
# --------------------------------------------------------------------------- #
os.environ.update(
{
"DB_URI": "sqlite+aiosqlite:///:memory:",
"ECHO_SQL": "false",
"SECRET_KEY": "test-secret",
"REFRESH_SECRET_KEY": "test-refresh",
"API_KEY": "test-key",
}
)
from fooder.test.fixtures import *