From d2ede36b4116e755a1a4d08d2dfb9b57bbd178fb Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 25 Jun 2026 20:38:16 +0000 Subject: [PATCH] =?UTF-8?q?Map=20built=5Fform=20on=20full-SAP=20certs=20?= =?UTF-8?q?=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- datatypes/epc/domain/tests/test_from_sap_schema.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/datatypes/epc/domain/tests/test_from_sap_schema.py b/datatypes/epc/domain/tests/test_from_sap_schema.py index 5eb64a6ab..0e9c5bc92 100644 --- a/datatypes/epc/domain/tests/test_from_sap_schema.py +++ b/datatypes/epc/domain/tests/test_from_sap_schema.py @@ -106,6 +106,16 @@ class TestFromSapSchema17_1RebaselineFields: assert result.property_type == "2" + def test_maps_built_form_as_gov_code_string(self) -> None: + # built_form (gov code 1 in the fixture) → str, mirroring + # from_rdsap_schema_17_1; carried for the calculator's exposed-side / + # sheltered handling and the property-details panel. + schema = from_dict(SapSchema17_1, load("sap_17_1.json")) + + result = EpcPropertyDataMapper.from_sap_schema_17_1(schema) + + assert result.built_form == "1" + class TestFullSapHasHotWaterCylinderFallback: """Some full-SAP certs (e.g. SAP-Schema-17.0 cert 8265-7433-3220-9736-7902)