Add auth foundation and app DB management
This commit is contained in:
@@ -16,7 +16,7 @@ from scripts.location_db_adopt import (
|
||||
LocationDatabaseAdoptionError,
|
||||
adopt_or_initialize_location_db,
|
||||
)
|
||||
from tests.conftest import _make_poo_alembic_config
|
||||
from tests.conftest import _make_app_alembic_config, _make_poo_alembic_config
|
||||
|
||||
|
||||
def _make_alembic_config(database_url: str) -> Config:
|
||||
@@ -200,6 +200,7 @@ def test_location_record_endpoint_defaults_invalid_altitude_to_zero(location_cli
|
||||
def test_legacy_style_location_db_can_be_stamped_and_adopted(
|
||||
test_database_urls, monkeypatch: pytest.MonkeyPatch
|
||||
) -> None:
|
||||
app_database_url = test_database_urls["app_url"]
|
||||
database_path = test_database_urls["location_path"]
|
||||
database_url = test_database_urls["location_url"]
|
||||
poo_database_url = test_database_urls["poo_url"]
|
||||
@@ -221,6 +222,7 @@ def test_legacy_style_location_db_can_be_stamped_and_adopted(
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
command.upgrade(_make_app_alembic_config(app_database_url), "head")
|
||||
command.stamp(_make_alembic_config(database_url), LOCATION_BASELINE_REVISION)
|
||||
command.upgrade(_make_poo_alembic_config(poo_database_url), "head")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user