music on atproto
plyr.fm
1"""Test package configuration."""
2
3import os
4
5# Ensure tests run against local, isolated services regardless of .env defaults.
6os.environ.setdefault(
7 "DATABASE_URL",
8 "postgresql+asyncpg://relay_test:relay_test@localhost:5433/relay_test",
9)
10os.environ.setdefault("FRONTEND_URL", "http://localhost:5173")
11os.environ.setdefault("LOGFIRE_ENABLED", "false")
12os.environ.setdefault("NOTIFY_ENABLED", "false")
13
14# Re-initialize settings after applying overrides so downstream imports
15# observe the test configuration.
16import backend.config as relay_config
17
18relay_config.settings = relay_config.Settings()