test: 前后端对齐—容器复跑验证+清理僵尸测试

- test_main: FastAPI 0.139 _IncludedRouter 不再 flatten,改用 TestClient 探测路由
- datareader: 文件名(sh600000_daily)/patch target(vnpy.trader.database) 对齐 lazy import 实现
- alpha_lab/analyzer/data_adapter: vnpy.alpha/alphalens 容器专用本地 skip
- 删 4 个测废弃 sanguo_web 的僵尸测试(-1267 行死代码)
- pytest.ini: asyncio_mode=auto
- frontend: package.json 加 test script(npm test 可跑)
- NAS 容器 309 passed 全绿验证(Python 3.10,本机 303+6skip)
This commit is contained in:
2026-07-11 11:45:26 +08:00
parent 928a52b96f
commit a1048690c1
11 changed files with 38 additions and 1267 deletions
+1
View File
@@ -106,6 +106,7 @@ def test_run_factor_analysis_calls_tears(tmp_path):
"""
import pytest
pytest.importorskip("polars")
pytest.importorskip("alphalens")
from pathlib import Path
from sanguo_factor.analyzer import run_factor_analysis