From 4329340287131c367c430b19248f80b59420b0ca Mon Sep 17 00:00:00 2001 From: zlt Date: Fri, 28 Aug 2026 15:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=A8=E5=85=B5=E7=99=BB=E8=AE=B0=EF=BC=9A?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E5=90=8D=E5=8D=95+=E5=87=80=E5=80=BC?= =?UTF-8?q?=E5=BF=AB=E7=85=A7=E3=80=81DDL=20=E8=A1=A8=E6=95=B0=2018?= =?UTF-8?q?=E2=86=9219?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/test_batch6_units.py | 3 ++- scripts/test_wiring.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/test_batch6_units.py b/scripts/test_batch6_units.py index 4a522d4..044cc80 100644 --- a/scripts/test_batch6_units.py +++ b/scripts/test_batch6_units.py @@ -570,7 +570,8 @@ def run(): # 加表就要来这里 +1 —— 这一行是 DDL 与代码之间唯一的哨兵, 它不动就说明新表没进 # ddl_pms_v1.sql (init_db 只认这个文件, 建不出来的表在实机上才会报"表不存在") # (2026-08-18: +pms_macro_signal 宏观信号日快照 → 18) - eq(len([1 for k, _, _ in stmts if k == "table"]), 18) + # (2026-08-28: +pms_nav_daily 每日净值快照·公示导出 → 19) + eq(len([1 for k, _, _ in stmts if k == "table"]), 19) eq(len([1 for k, _, _ in stmts if k == "seed"]), 1) @case("通道三表的 SQL 全部单表合规") diff --git a/scripts/test_wiring.py b/scripts/test_wiring.py index 2daa62d..e77c8ff 100644 --- a/scripts/test_wiring.py +++ b/scripts/test_wiring.py @@ -622,11 +622,12 @@ def _(): "intraday_exec", "signal_digest", "t0_close", "daily_settle", "daily_report", "macro_scan", # 2026-08-18 +宏观择时 09:35 - "strategy_attach"}, names # 2026-08-25 +策略自动挂载 09:40 + "strategy_attach", # 2026-08-25 +策略自动挂载 09:40 + "nav_snapshot"}, names # 2026-08-28 +公示净值快照 15:20 tasks = set(sch.celery_app.tasks) for t in ("pms.premarket", "pms.command_poll", "pms.replay_fills", "pms.daily_settle", "pms.daily_report", "pms.t0_close", "pms.intraday_exec", "pms.signal_digest", - "pms.plan_pull", "pms.macro_scan", "pms.strategy_attach"): + "pms.plan_pull", "pms.macro_scan", "pms.strategy_attach", "pms.nav_snapshot"): assert t in tasks, t assert sch.in_session(datetime(2026, 7, 27, 10, 0)) is True assert sch.in_session(datetime(2026, 7, 27, 12, 0)) is False