bab0718700
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>
27 lines
679 B
Python
Executable File
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"
|