|
|
|
@ -124,13 +124,21 @@ def test_find_optional_extra_prefers_project_extra_name() -> None:
|
|
|
|
def test_business_alembic_uses_template_config(tmp_path: Path) -> None:
|
|
|
|
def test_business_alembic_uses_template_config(tmp_path: Path) -> None:
|
|
|
|
ctx = ProjectContext(tmp_path, "business", {}, False)
|
|
|
|
ctx = ProjectContext(tmp_path, "business", {}, False)
|
|
|
|
|
|
|
|
|
|
|
|
assert alembic_base_cmd(ctx) == ["uv", "run", "alembic", "-c", "migrations/alembic.ini"]
|
|
|
|
assert alembic_base_cmd(ctx) == [
|
|
|
|
|
|
|
|
"uv",
|
|
|
|
|
|
|
|
"run",
|
|
|
|
|
|
|
|
"python",
|
|
|
|
|
|
|
|
"-m",
|
|
|
|
|
|
|
|
"alembic",
|
|
|
|
|
|
|
|
"-c",
|
|
|
|
|
|
|
|
"migrations/alembic.ini",
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_framework_alembic_uses_default_config(tmp_path: Path) -> None:
|
|
|
|
def test_framework_alembic_uses_default_config(tmp_path: Path) -> None:
|
|
|
|
ctx = ProjectContext(tmp_path, "framework", {}, False)
|
|
|
|
ctx = ProjectContext(tmp_path, "framework", {}, False)
|
|
|
|
|
|
|
|
|
|
|
|
assert alembic_base_cmd(ctx) == ["uv", "run", "alembic"]
|
|
|
|
assert alembic_base_cmd(ctx) == ["uv", "run", "python", "-m", "alembic"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_parse_run_args_accepts_env_and_port() -> None:
|
|
|
|
def test_parse_run_args_accepts_env_and_port() -> None:
|
|
|
|
|