方法体未改。定向测试 383 通过;1 条校正回归在基线上同样失败,断言未改。快速门和全量 pytest 未跑。 Co-Authored-By: Grok (agent loop)
18 lines
670 B
Python
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() == []
|