From 22893e86453711805ec562ac390ac58d331b6e78 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 21 Apr 2026 15:11:31 +0000 Subject: [PATCH] =?UTF-8?q?map=20heating=20immersion=20type=20=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documents_parser/tests/test_end_to_end.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/backend/documents_parser/tests/test_end_to_end.py b/backend/documents_parser/tests/test_end_to_end.py index 428d2cad..03c487fc 100644 --- a/backend/documents_parser/tests/test_end_to_end.py +++ b/backend/documents_parser/tests/test_end_to_end.py @@ -273,3 +273,22 @@ class TestPdfToEpcPropertyDataFixture2: def test_secondary_heating_type(self, result: EpcPropertyData) -> None: assert result.sap_heating.secondary_heating_type == "Open fire in grate" + + +PDF_PATH_3 = os.path.join( + os.path.dirname(__file__), "fixtures", "ExampleSiteNotes_3.pdf" +) + + +class TestPdfToEpcPropertyDataFixture3: + @pytest.fixture + def result(self) -> EpcPropertyData: + with open(PDF_PATH_3, "rb") as f: + pdf_bytes = f.read() + site_notes = PasHubRdSapSiteNotesExtractor( + pdf_to_text_list(pdf_bytes) + ).extract() + return EpcPropertyDataMapper.from_site_notes(site_notes) + + def test_immersion_heating_type(self, result: EpcPropertyData) -> None: + assert result.sap_heating.immersion_heating_type == "Dual"