Build isolated upgrade URL from runtime config
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-18 03:12:03 +02:00
parent 4eefb7c87f
commit 944269c25b
2 changed files with 13 additions and 5 deletions
+4 -2
View File
@@ -94,8 +94,10 @@ def test_upgrade_smoke_restores_and_upgrades_only_an_isolated_database() -> None
assert "restore_release_backup_smoke.sh" in script
assert "--keep-database" in script
assert "geointel_restore_verify_" in script
assert 'make_url(os.environ["DATABASE_URL"])' in script
assert ".set(database=os.environ[\"TARGET_DB\"])" in script
assert "from sqlalchemy import URL" in script
assert 'username=os.environ["GEOINTEL_POSTGRES_USER"]' in script
assert 'password=os.environ["GEOINTEL_POSTGRES_PASSWORD"]' in script
assert 'database=os.environ["TARGET_DB"]' in script
assert '"$CONTAINER" sh -c' in script
assert '"$CONTAINER" sh -lc' not in script
assert "python -m alembic upgrade head" in script