feat: add resource library and real image workflow
This commit is contained in:
15
tests/test_settings.py
Normal file
15
tests/test_settings.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""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"
|
||||
Reference in New Issue
Block a user