from __future__ import annotations from app.change_detection.extractors import extract_prices, mentions_leadership_title def test_extract_prices_finds_dollar_amounts(): text = "The Pro plan is $49/month and the Enterprise plan is $199.99/month." prices = extract_prices(text) assert "$49/month" in prices assert "$199.99/month" in prices def test_extract_prices_empty_when_no_prices(): assert extract_prices("No pricing information on this page.") == set() def test_mentions_leadership_title_detects_ceo(): assert mentions_leadership_title("Jane Smith has been appointed as the new CEO.") is True def test_mentions_leadership_title_false_when_absent(): assert mentions_leadership_title("We shipped a new feature this week.") is False