Add tests for CLI entry point and scoring functionality; enhance service layer tests for similar units

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ole
2026-05-26 13:54:58 +00:00
parent 22f30ebf00
commit 2933b8c1ea
7 changed files with 865 additions and 5 deletions
+3 -1
View File
@@ -17,6 +17,8 @@ def test_score_ad_and_classify():
rooms=4,
)
scores = score_ad(ad, unit, [])
assert scores["market_position"] >= 0
assert "total" in scores
assert scores["total"] >= 0
assert scores["total"] <= 100
categories = classify_ad(scores)
assert isinstance(categories, list)