Map built_form on full-SAP certs 🟥

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-06-25 20:38:16 +00:00
parent 5c0460cee2
commit d2ede36b41

View file

@ -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)