M8-T14: add generic meter cost periods
This commit is contained in:
@@ -1251,8 +1251,8 @@ def test_contract_scope_migration_preserves_historical_contract_audit(tmp_path:
|
||||
{"now": now, "pricing": pricing, "version_id": version_id},
|
||||
)
|
||||
|
||||
command.upgrade(cfg, "head")
|
||||
command.upgrade(cfg, "head")
|
||||
command.upgrade(cfg, "20260822_18_contract_scopes")
|
||||
command.upgrade(cfg, "20260822_18_contract_scopes")
|
||||
with engine.connect() as connection:
|
||||
assert connection.execute(text("SELECT version_num FROM alembic_version")).scalar_one() == (
|
||||
"20260822_18_contract_scopes"
|
||||
@@ -1359,7 +1359,7 @@ def test_contract_scope_migration_audit_failure_restores_revision_17(tmp_path: P
|
||||
engine.dispose()
|
||||
|
||||
del cfg.attributes["m8_t12_post_ddl_audit_failure"]
|
||||
command.upgrade(cfg, "head")
|
||||
command.upgrade(cfg, "20260822_18_contract_scopes")
|
||||
engine = _engine_with_fk(db_url)
|
||||
with engine.connect() as connection:
|
||||
assert connection.execute(text("SELECT version_num FROM alembic_version")).scalar_one() == (
|
||||
|
||||
Reference in New Issue
Block a user