将 web/services/runtime.py 拆为 runtime/ 子模块并保持门面兼容;补齐 ESS 文档、门面/契约/TF_DF 测试与 CODE_REVIEW Approve。 Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
807 B
Markdown
32 lines
807 B
Markdown
# TEST_REPORT — ECR-002
|
|
|
|
**Date:** 2026-08-06
|
|
**Level:** L3
|
|
|
|
## Command
|
|
|
|
```bash
|
|
PYTHONPATH=.:web python -m pytest \
|
|
tests/test_golden_pipeline.py \
|
|
tests/test_tf_df_init.py \
|
|
web/tests/test_runtime_facade.py \
|
|
web/tests/test_analyze_contract.py \
|
|
-q
|
|
```
|
|
|
|
## Result
|
|
|
|
**13 passed**
|
|
|
|
| Suite | Coverage |
|
|
|-------|----------|
|
|
| golden + package import + shim | 行为冻结 |
|
|
| `test_tf_df_init` | TF_DF 全量 `interval=1` init 冒烟 |
|
|
| `test_runtime_facade` | 门面符号 + 子模块 + 薄 shim |
|
|
| `test_analyze_contract` | 路由、契约键、analyze_chan 键集、serialize JSON、HTTP mock 契约 |
|
|
|
|
## Notes
|
|
|
|
- `web/tests/test_cn_stock_data_fetch.py` 仍因旧路径 `user_data.Chan...` 无法收集(既有问题,非本 ECR)。
|
|
- chart_tv 拆分未做,无前端自动化。
|