rebuild(stage-5): establish market data gateway and charts

This commit is contained in:
leefer
2026-07-30 02:35:42 +08:00
parent 40ad5d6836
commit cf0ab7026f
45 changed files with 2701 additions and 46 deletions
+6 -2
View File
@@ -110,7 +110,7 @@ def test_real_account_schema_can_upgrade_and_rollback(tmp_path) -> None:
database = Database(tmp_path / "app.db")
runner = MigrationRunner(database)
assert runner.upgrade(MIGRATIONS) == (1, 2)
assert runner.upgrade(MIGRATIONS) == (1, 2, 3)
assert {
"users",
"memberships",
@@ -120,8 +120,12 @@ def test_real_account_schema_can_upgrade_and_rollback(tmp_path) -> None:
"system_credentials",
"llm_models",
"llm_configuration",
"trading_days",
"market_entities",
"market_summaries",
"chart_series",
} <= table_names(database)
assert runner.downgrade(MIGRATIONS, target_version=0) == (2, 1)
assert runner.downgrade(MIGRATIONS, target_version=0) == (3, 2, 1)
assert "users" not in table_names(database)
assert "llm_models" not in table_names(database)