mirror of
https://github.com/migatu/astrololo.git
synced 2026-07-14 21:38:37 +00:00
82809665ff
- abbreviations.py: słownik skrót -> pełna nazwa (z SIGNIFICATORS KEY, built-in) + expand(): [Su in [Tau -> "Sun in Taurus", [Sa in 6th H. -> "...6th house", affl. -> afflicted itd. - significators: każda próbka ma pole "expanded" (postać czytelna); hartowanie filtra szumu (efekty zastępcze x/?/-, wiersze *MARKER, legendy/nagłówki). - prezentacja /interpret: pokazuje rozwiniętą postać, surowy skrót w tooltipie. Zweryfikowano na realnym main_base.xlsx: "[Sa or [Ma in the 5th H." -> "Saturn or Mars in the 5th house". 9 testów przechodzi (w tym test_abbreviations). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
568 B
Python
23 lines
568 B
Python
"""Testy rozwijania skrótów sygnifikatorów."""
|
|
from app.abbreviations import expand
|
|
|
|
|
|
def test_planet_in_sign():
|
|
assert expand("[Su in [Tau") == "Sun in Taurus"
|
|
|
|
|
|
def test_aspect_and_house():
|
|
assert expand("[Sa [conj [Su in 6th H.") == "Saturn conjunction Sun in 6th house"
|
|
|
|
|
|
def test_affliction_word_and_house():
|
|
assert expand("[Ne affl. in the 7th H.") == "Neptune afflicted in the 7th house"
|
|
|
|
|
|
def test_unknown_token_kept_without_bracket():
|
|
assert expand("[Xyz rising") == "Xyz rising"
|
|
|
|
|
|
def test_empty_passthrough():
|
|
assert expand("") == ""
|