mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Map built_form on full-SAP certs 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5c0460cee2
commit
d2ede36b41
1 changed files with 10 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue