Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
38 lines
1.9 KiB
Python
38 lines
1.9 KiB
Python
# BUG-2301: the astrologer's tests/test_yoga_aputra_source.py at upstream 58f37ee5b, unchanged except the skip markers (reasons inline).
|
|
import pytest
|
|
from scripts.yoga_engine import YogaEngine
|
|
|
|
|
|
def run(planets, asc='Aquarius'):
|
|
engine = YogaEngine('references/yoga_rules.json')
|
|
engine.rules = [r for r in engine.rules if r['id'] == 'bvr_104_aputhra_yoga']
|
|
return engine.detect(planets, asc)
|
|
|
|
|
|
@pytest.mark.skip(reason='BUG-2301: checks her report pack (professional_parity_closure.build_yoga_interpretation_pack); this site builds yoga pages in pl9_interpretation_packs, gated per tests/test_yoga_effect_gate_2300.py')
|
|
def test_author_chart102_geometry_not_outcome_calibration():
|
|
from scripts.professional_parity_closure import build_yoga_interpretation_pack
|
|
# Printed214 Rasi diagram: Aquarius rising, fifth lord Mercury in Cancer.
|
|
row = run({'Mercury': {'house': 6, 'sign': 'Cancer'}})[0]
|
|
assert row['formation_status'] == 'conditions_met'
|
|
assert row['condition_checks']['fifth_lord_in_dusthana']['planet'] == 'Mercury'
|
|
assert not row['effects'] and 'effects_en' not in row
|
|
assert row['effect_assessment']['personal_outcome_established'] is False
|
|
assert 'whole fifth-house' in row['effect_assessment']['summary_en']
|
|
page = build_yoga_interpretation_pack({'yogas': [row]}, active_dasha_lords={'Mercury'})['pages'][0]
|
|
assert page['effect_assessment'] == row['effect_assessment']
|
|
assert not page['claim_permissions']['event_outcome']
|
|
assert page['dasha_activation']['status'] == 'structural_overlap_only'
|
|
|
|
|
|
def test_all_houses_and_no_invented_jupiter_requirement():
|
|
for house in range(1, 13):
|
|
rows = run({'Sun': {'house': house}}, asc='Aries')
|
|
assert bool(rows) is (house in (6, 8, 12))
|
|
|
|
|
|
def test_missing_lord_stays_incomplete():
|
|
row = run({})[0]
|
|
assert row['formation_status'] == 'incomplete_conditions'
|
|
assert row['missing_inputs']
|