Files
Jyotisha/tests/test_yogini_seed_profile.py
T
Jesse_ChenandClaude Opus 5.5 5172620c72 fix: use nakshatra seed for Yogini dasha (upstream cb7fe017)
(nakshatra + 3) mod 8 seed. The upstream edit to
tests/test_dasha_master_pack_coverage.py is dropped: that file does not
exist here. TASK-upstream-sync5-20261002 U5.

(cherry picked from commit cb7fe017)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
2026-10-02 23:40:34 +08:00

24 lines
808 B
Python

from datetime import datetime
from scripts.yogini_dasha import calculate_yogini_dasha
def test_yogini_uses_moon_nakshatra_plus_three_seed_when_available() -> None:
result = calculate_yogini_dasha({
'lagna_rashi_index': 0,
'moon_nakshatra_index': 0,
'birth_datetime': datetime(1990, 1, 1),
})
assert result['starting_yogini'] == 'Rati'
assert result['starting_planet'] == 'Mercury'
assert result['seed_method'] == 'moon_nakshatra_plus_3_mod_8'
def test_yogini_keeps_legacy_seed_only_without_moon_nakshatra() -> None:
result = calculate_yogini_dasha({
'lagna_rashi_index': 0,
'birth_datetime': datetime(1990, 1, 1),
})
assert result['starting_yogini'] == 'Maya'
assert result['seed_method'] == 'legacy_lagna_rashi_compatibility'