"""Testy punktacji siły faset (LOG-21).""" from app.scoring import score_facet def test_sign_and_house_base(): assert score_facet({"type": "sign"}) == 5.0 assert score_facet({"type": "house"}) == 5.0 def test_tighter_aspect_scores_higher(): tight = score_facet({"type": "aspect", "aspect": "conjunction", "orb": 0.0, "allowed": 10.0}) loose = score_facet({"type": "aspect", "aspect": "conjunction", "orb": 9.0, "allowed": 10.0}) assert tight > loose assert tight == 12.0 # 6.0 * 1.0 * (1 + 1) def test_conjunction_beats_sextile_at_same_orb(): conj = score_facet({"type": "aspect", "aspect": "conjunction", "orb": 2.0, "allowed": 10.0}) sext = score_facet({"type": "aspect", "aspect": "sextile", "orb": 2.0, "allowed": 10.0}) assert conj > sext