feat(platform): close AI expense value loop
Add tenant-safe value, telemetry, connector, commercial, and production-readiness foundations.
This commit is contained in:
@@ -69,7 +69,10 @@ def test_revision_0007_accepts_partial_legacy_historical_case_tables(engine: Eng
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"owned_table",
|
||||
sorted(MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0007"]),
|
||||
sorted(
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0023"]
|
||||
- LEGACY_ADOPTABLE_HISTORICAL_CASE_TABLES
|
||||
),
|
||||
)
|
||||
def test_unversioned_database_with_any_migration_owned_table_is_rejected(
|
||||
engine: Engine,
|
||||
@@ -157,6 +160,64 @@ def test_known_revision_requires_and_accepts_its_exact_owned_table_set(
|
||||
"20260716_0014",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0014"] - {"risk_disposition_events"},
|
||||
),
|
||||
(
|
||||
"20260716_0015",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0015"] - {"savings_events"},
|
||||
),
|
||||
(
|
||||
"20260716_0016",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0016"]
|
||||
- {"commercial_cost_events"},
|
||||
),
|
||||
(
|
||||
"20260716_0017",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0017"]
|
||||
- {"financial_connector_events"},
|
||||
),
|
||||
(
|
||||
"20260716_0018",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0018"]
|
||||
- {"agent_asset_release_observations"},
|
||||
),
|
||||
(
|
||||
"20260716_0019",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0019"]
|
||||
- {"commercial_runtime_reservations"},
|
||||
),
|
||||
(
|
||||
"20260716_0020",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0020"]
|
||||
- {"financial_connector_config_events"},
|
||||
),
|
||||
(
|
||||
"20260716_0021",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0021"]
|
||||
- {"commercial_billing_periods"},
|
||||
),
|
||||
(
|
||||
"20260716_0022",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0022"]
|
||||
- {"financial_connector_operational_events"},
|
||||
),
|
||||
(
|
||||
"20260716_0023",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260716_0023"]
|
||||
- {"agent_asset_release_audit_samples"},
|
||||
),
|
||||
(
|
||||
"20260717_0025",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260717_0025"] - {"tenants"},
|
||||
),
|
||||
(
|
||||
"20260717_0027",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260717_0027"]
|
||||
- {"knowledge_onlyoffice_sessions"},
|
||||
),
|
||||
(
|
||||
"20260717_0028",
|
||||
MIGRATION_OWNED_TABLES_BY_REVISION["20260717_0028"]
|
||||
- {"tenant_finance_report_runs"},
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_known_revision_with_missing_or_unexpected_owned_tables_is_rejected(
|
||||
|
||||
Reference in New Issue
Block a user