Files
Jyotisha/tests/test_api_service_extract_golden.py
T
jesse-uxandGrok (agent loop) c7350bcafb 把星盘接口的计算和 HTTP 拆成两个类,离线入口不再伪造请求对象。
方法体未改。定向测试 383 通过;1 条校正回归在基线上同样失败,断言未改。快速门和全量 pytest 未跑。

Co-Authored-By: Grok (agent loop)
2026-10-16 10:24:42 +08:00

18 lines
670 B
Python

"""Recompute the fictional smoke chart and compare canonical hashes.
The stored golden keeps sha256 and key-path types only.
"""
from __future__ import annotations
import importlib.util
from pathlib import Path
def test_api_service_extract_golden_matches_baseline() -> None:
path = Path(__file__).resolve().parents[1] / "scripts" / "research" / "api_service_extract_golden.py"
spec = importlib.util.spec_from_file_location("api_service_extract_golden", path)
assert spec is not None and spec.loader is not None
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
assert module.check_golden() == []