fix: load numbered migration module dynamically

This commit is contained in:
2026-08-04 12:12:26 +08:00
parent a59b6cdf53
commit ca0f58be0c
2 changed files with 15 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
"""Regression coverage for application dependency module imports."""
from pathlib import Path
def test_dependency_module_compiles():
"""Database initialization dependencies remain valid Python syntax."""
module_path = Path(__file__).parents[1] / "app" / "core" / "deps.py"
compile(module_path.read_text(encoding="utf-8"), str(module_path), "exec")