把星盘接口的计算和 HTTP 拆成两个类,离线入口不再伪造请求对象。

方法体未改。定向测试 383 通过;1 条校正回归在基线上同样失败,断言未改。快速门和全量 pytest 未跑。

Co-Authored-By: Grok (agent loop)
This commit is contained in:
jesse-ux
2026-10-16 10:24:42 +08:00
co-authored by Grok (agent loop)
parent fbf04f0b5f
commit c7350bcafb
25 changed files with 3104 additions and 658 deletions
+2 -2
View File
@@ -79,9 +79,9 @@ def test_window_packet_probes_always_pass_hour_and_minute(monkeypatch: pytest.Mo
def test_api_handler_rejects_hour_on_declared_window() -> None:
from jyotish_api_server import BadRequest, JyotishAPIHandler
from jyotish_api_server import BadRequest, JyotishComputeService
handler = JyotishAPIHandler.__new__(JyotishAPIHandler)
handler = JyotishComputeService()
with pytest.raises(BadRequest, match="single birth minute"):
handler._compute_declared_window_chart({
**BIRTH_PLACE,