unit tests for estimate windows

This commit is contained in:
Khalim Conn-Kowlessar 2023-12-20 10:34:08 +00:00
parent 57f92e6060
commit 1b10f5c9b1

View file

@ -518,3 +518,15 @@ def test_estimate_windows():
)
assert windows_case_7 == 10, f"Expected 10 windows, got {windows_case_7}"
# Base on Khalim's parents flat
windows_case_8 = recommendation_utils.estimate_windows(
property_type="Flat",
built_form="End-Terrace",
construction_age_band="",
floor_area=50,
number_habitable_rooms=3,
extension_count=0,
)
assert windows_case_8 == 5, f"Expected 5 windows, got {windows_case_8}"