"""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("") == ""