forked from the-crypt-keeper/tldw
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathconftest.py
More file actions
21 lines (17 loc) · 731 Bytes
/
conftest.py
File metadata and controls
21 lines (17 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
Top-level pytest configuration for the repository.
Registers shared test plugins to satisfy pytest's top-level requirement.
"""
import os
# Provide a deterministic single-user test key before loading plugins.
os.environ.setdefault("SINGLE_USER_TEST_API_KEY", "test-api-key-12345")
os.environ.setdefault("SINGLE_USER_API_KEY", os.environ["SINGLE_USER_TEST_API_KEY"])
os.environ.setdefault("AUTH_MODE", "single_user")
os.environ.pop("PROFILE", None)
pytest_plugins = (
"tldw_Server_API.tests.helpers.pgvector",
"tldw_Server_API.tests._plugins.e2e_fixtures",
"tldw_Server_API.tests._plugins.e2e_state_fixtures",
"tldw_Server_API.tests._plugins.media_fixtures",
"tldw_Server_API.tests._plugins.postgres",
)