From 691efcad72c87d147a6f870dfccd719cfc1c379d Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 21 Apr 2026 15:07:18 +0000 Subject: [PATCH] =?UTF-8?q?extracy=20heating=20immersion=20type=20?= =?UTF-8?q?=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/documents_parser/tests/test_extractor.py | 11 +++++++++++ datatypes/epc/surveys/pashub_rdsap_site_notes.py | 1 + 2 files changed, 12 insertions(+) diff --git a/backend/documents_parser/tests/test_extractor.py b/backend/documents_parser/tests/test_extractor.py index 5da90e8d..d037a6bc 100644 --- a/backend/documents_parser/tests/test_extractor.py +++ b/backend/documents_parser/tests/test_extractor.py @@ -407,6 +407,17 @@ class TestWaterHeatingCylinderThickness: assert hhw.water_heating.cylinder_size == "Normal (90-130 litres)" +class TestImmersionType: + @pytest.fixture + def hhw(self) -> HeatingAndHotWater: + return PasHubRdSapSiteNotesExtractor( + load_text_fixture_3() + ).extract_heating_and_hot_water() + + def test_immersion_type(self, hhw: HeatingAndHotWater) -> None: + assert hhw.water_heating.immersion_type == "Dual" + + class TestCylinderThermostat: @pytest.fixture def hhw(self) -> HeatingAndHotWater: diff --git a/datatypes/epc/surveys/pashub_rdsap_site_notes.py b/datatypes/epc/surveys/pashub_rdsap_site_notes.py index 1f46b613..1666ca2e 100644 --- a/datatypes/epc/surveys/pashub_rdsap_site_notes.py +++ b/datatypes/epc/surveys/pashub_rdsap_site_notes.py @@ -191,6 +191,7 @@ class WaterHeating: insulation_type: Optional[str] = None insulation_thickness_mm: Optional[int] = None has_thermostat: Optional[bool] = None + immersion_type: Optional[str] = None @dataclass