mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Map assessment_type on full-SAP certs 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f568ec00fc
commit
33f9988ac5
1 changed files with 9 additions and 0 deletions
|
|
@ -127,6 +127,15 @@ class TestFromSapSchema17_1RebaselineFields:
|
||||||
assert result.secondary_heating is not None
|
assert result.secondary_heating is not None
|
||||||
assert result.secondary_heating.description == "None"
|
assert result.secondary_heating.description == "None"
|
||||||
|
|
||||||
|
def test_maps_assessment_type(self) -> None:
|
||||||
|
# Full-SAP certs lodge assessment_type "SAP"; carried for provenance and
|
||||||
|
# the property-details panel, mirroring from_rdsap_schema_17_1.
|
||||||
|
schema = from_dict(SapSchema17_1, load("sap_17_1.json"))
|
||||||
|
|
||||||
|
result = EpcPropertyDataMapper.from_sap_schema_17_1(schema)
|
||||||
|
|
||||||
|
assert result.assessment_type == "SAP"
|
||||||
|
|
||||||
|
|
||||||
class TestFullSapHasHotWaterCylinderFallback:
|
class TestFullSapHasHotWaterCylinderFallback:
|
||||||
"""Some full-SAP certs (e.g. SAP-Schema-17.0 cert 8265-7433-3220-9736-7902)
|
"""Some full-SAP certs (e.g. SAP-Schema-17.0 cert 8265-7433-3220-9736-7902)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue