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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user