16 lines
431 B
Python
16 lines
431 B
Python
"""Tests for application settings resolution."""
|
|
|
|
from pathlib import Path
|
|
|
|
from app.config.settings import Settings
|
|
|
|
|
|
def test_settings_env_file_uses_backend_repo_path() -> None:
|
|
"""Settings should resolve .env relative to the backend repo, not the launch cwd."""
|
|
|
|
env_file = Settings.model_config.get("env_file")
|
|
|
|
assert isinstance(env_file, Path)
|
|
assert env_file.is_absolute()
|
|
assert env_file.name == ".env"
|