feat(v2): add validated runtime and metadata store
This commit is contained in:
@@ -51,7 +51,8 @@ def settings_for(tmp_path: Path) -> Any:
|
||||
|
||||
|
||||
def alembic_config(database_url: str) -> Config:
|
||||
config = Config("backend/alembic.ini")
|
||||
project_root = Path(__file__).resolve().parents[2]
|
||||
config = Config(project_root / "backend" / "alembic.ini")
|
||||
config.set_main_option("sqlalchemy.url", database_url)
|
||||
return config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user