From de10fe7e6dec6887216f9566a9f2bf10e719812f Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 2 Jan 2024 18:46:19 +0000 Subject: [PATCH] handle edge case of a detatched maisonnete --- etl/testing_data/estimate_epc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etl/testing_data/estimate_epc.py b/etl/testing_data/estimate_epc.py index 2203402a..9ecd7236 100644 --- a/etl/testing_data/estimate_epc.py +++ b/etl/testing_data/estimate_epc.py @@ -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