Files
Jyotisha/tests/test_kp_monthly_transits.py
T
Jesse_Chen bab0718700
Independent Staging Quality Gate / validate (push) Failing after 9m41s
Independent Staging Quality Gate / publish (push) Has been skipped
feat(report): ship full-mode longform appendix beside the five-chapter report
Web export now calls the same full pack as the long skill report and caches an owner-only Markdown download. Appendix failure stays unavailable and does not change the main report status.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-05 11:10:44 +08:00

27 lines
679 B
Python
Executable File

from scripts.kp_monthly_transits import build_monthly_transit_snapshot
def test_monthly_transit_snapshot_returns_all_nine_planets_and_real_date() -> None:
snapshot = build_monthly_transit_snapshot(
year=2026,
month=1,
lat=39.9042,
lon=116.4074,
tz=8.0,
)
assert snapshot["month"] == "2026-01"
assert snapshot["anchor_local"].startswith("2026-01-01T12:00:00")
assert set(snapshot["planets"].keys()) >= {
"Sun",
"Moon",
"Mars",
"Mercury",
"Jupiter",
"Venus",
"Saturn",
"Rahu",
"Ketu",
}
assert snapshot["status"] == "parameter_sensitive"