chore(cloud): verify integration change
This commit is contained in:
@@ -74,7 +74,11 @@ def test_legacy_data_survives_upgrade_and_downgrade(tmp_path) -> None:
|
||||
"('task-a', 'goal', null, :constraints, 'queued', null, null, "
|
||||
"'2026-01-01T00:00:00+00:00')"
|
||||
),
|
||||
{"constraints": json.dumps({"driver_type": None, "capability_tags": []})},
|
||||
{
|
||||
"constraints": json.dumps(
|
||||
{"driver_type": None, "capability_tags": []}
|
||||
)
|
||||
},
|
||||
)
|
||||
finally:
|
||||
engine.dispose()
|
||||
@@ -83,7 +87,9 @@ def test_legacy_data_survives_upgrade_and_downgrade(tmp_path) -> None:
|
||||
engine = create_engine(database_url)
|
||||
try:
|
||||
with engine.connect() as connection:
|
||||
assert connection.scalar(text("select count(*) from host_registrations")) == 1
|
||||
assert (
|
||||
connection.scalar(text("select count(*) from host_registrations")) == 1
|
||||
)
|
||||
assert connection.scalar(text("select count(*) from scheduled_tasks")) == 1
|
||||
task_columns = {
|
||||
column["name"] for column in inspect(engine).get_columns("scheduled_tasks")
|
||||
@@ -96,7 +102,9 @@ def test_legacy_data_survives_upgrade_and_downgrade(tmp_path) -> None:
|
||||
engine = create_engine(database_url)
|
||||
try:
|
||||
with engine.connect() as connection:
|
||||
assert connection.scalar(text("select count(*) from host_registrations")) == 1
|
||||
assert (
|
||||
connection.scalar(text("select count(*) from host_registrations")) == 1
|
||||
)
|
||||
assert connection.scalar(text("select count(*) from scheduled_tasks")) == 1
|
||||
task_columns = {
|
||||
column["name"] for column in inspect(engine).get_columns("scheduled_tasks")
|
||||
|
||||
Reference in New Issue
Block a user