feat: add resource library and real image workflow

This commit is contained in:
afei A
2026-03-29 00:24:29 +08:00
parent eeaff269eb
commit 04da401ab4
38 changed files with 3033 additions and 117 deletions

15
tests/test_settings.py Normal file
View 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"