handle edge case of a detatched maisonnete

This commit is contained in:
Khalim Conn-Kowlessar 2024-01-02 18:46:19 +00:00
parent f7cd9d0d10
commit de10fe7e6d

View file

@ -94,6 +94,8 @@ def app():
# Perform the same remapping for built-form as in the Property class for this test, in case we get (e.g.)
# Enclosed End-Terrace
built_form = BUILT_FORM_REMAP.get(epc["built-form"], epc["built-form"])
if (epc["property-type"] == "Maisonette") & (built_form == "Detached"):
built_form = ""
estimated_epc = searcher.estimate_epc(
property_type=epc["property-type"], built_form=built_form, lmks_to_drop=lmks_to_drop