From 33f9988ac510b7af9b2f3ca8ff2c4998085d6423 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 25 Jun 2026 20:52:07 +0000 Subject: [PATCH] =?UTF-8?q?Map=20assessment=5Ftype=20on=20full-SAP=20certs?= =?UTF-8?q?=20=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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/datatypes/epc/domain/tests/test_from_sap_schema.py b/datatypes/epc/domain/tests/test_from_sap_schema.py index 1f6afae2..0612f523 100644 --- a/datatypes/epc/domain/tests/test_from_sap_schema.py +++ b/datatypes/epc/domain/tests/test_from_sap_schema.py @@ -127,6 +127,15 @@ class TestFromSapSchema17_1RebaselineFields: assert result.secondary_heating is not 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: """Some full-SAP certs (e.g. SAP-Schema-17.0 cert 8265-7433-3220-9736-7902)