test(rectification): cover upstream acceptance
This commit is contained in:
@@ -30,3 +30,28 @@ def test_scanner_reports_real_divisional_transitions(monkeypatch):
|
||||
assert report["input_contract"]["settings"]["node_mode"] == "mean"
|
||||
assert report["rows"][0]["input_fingerprint"] != report["rows"][1]["input_fingerprint"]
|
||||
assert report["stability_contract"]["minute_confirmation_allowed"] is False
|
||||
|
||||
|
||||
def test_scanner_keeps_raman_default_and_applies_explicit_lahiri() -> None:
|
||||
birth = {
|
||||
"year": 2000,
|
||||
"month": 1,
|
||||
"day": 1,
|
||||
"hour": 12,
|
||||
"minute": 1,
|
||||
"lat": 25.04,
|
||||
"lon": 121.56,
|
||||
"tz": 8,
|
||||
}
|
||||
|
||||
default_report = scanner.scan_candidate_times(birth, uncertainty_minutes=1)
|
||||
lahiri_report = scanner.scan_candidate_times(
|
||||
{**birth, "ayanamsa": "lahiri"},
|
||||
uncertainty_minutes=1,
|
||||
)
|
||||
default_center = next(row for row in default_report["rows"] if row["offset_minutes"] == 0)
|
||||
lahiri_center = next(row for row in lahiri_report["rows"] if row["offset_minutes"] == 0)
|
||||
|
||||
assert default_report["input_contract"]["settings"]["ayanamsa"] == "raman"
|
||||
assert lahiri_report["input_contract"]["settings"]["ayanamsa"] == "lahiri"
|
||||
assert abs(default_center["d1_longitude"] - lahiri_center["d1_longitude"]) > 1
|
||||
|
||||
Reference in New Issue
Block a user