sync: add timing freeze and gulika fix

This commit is contained in:
732642856
2026-07-23 20:35:14 +08:00
parent 91e9da4c1c
commit 3ce3f63692
2 changed files with 13 additions and 3 deletions
+7
View File
@@ -32,3 +32,10 @@ def test_gulika_matches_public_pyjhora_smoke_oracle() -> None:
assert result["method"] == "saturn_part_start"
assert result["sign_idx"] == expected["sign_index"]
assert abs(result["degree_in_sign"] - expected["degree_in_sign"]) <= 0.5
def test_gulika_night_uses_weekday_of_preceding_sunset() -> None:
result = calculate_gulika(datetime(2023, 1, 27, 2, 30, 15), lat=23.0225, lon=72.5714, tz=5.5)
assert result["period"] == "night"
assert result["weekday"] == 3
assert result["sign_idx"] == 7