From 1db9c688783e908d76d50e16250611f9b94f4c83 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Thu, 16 Apr 2026 13:57:49 +0000 Subject: [PATCH] =?UTF-8?q?Map=20to=20RdSapSiteNotes=20from=20site=20notes?= =?UTF-8?q?=20JSON:=20additional=20General=20test=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documents_parser/tests/test_extractor.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/backend/documents_parser/tests/test_extractor.py b/backend/documents_parser/tests/test_extractor.py index 38c7f328..a40e9d77 100644 --- a/backend/documents_parser/tests/test_extractor.py +++ b/backend/documents_parser/tests/test_extractor.py @@ -54,3 +54,24 @@ class TestGeneral: def test_measurements_location(self, general: General) -> None: assert general.measurements_location == "Internal" + + def test_full_general(self, general: General) -> None: + assert general == General( + epc_checked_before_assessment=True, + epc_exists_at_point_of_assessment=False, + inspection_date="2025-09-25", + transaction_type="Grant-Scheme (ECO, RHI, etc.)", + tenure="Rented Social", + property_type="House", + detachment_type="Mid-terrace", + number_of_storeys=2, + terrain_type="Suburban", + number_of_extensions=1, + electricity_smart_meter=True, + electric_meter_type="Single", + dwelling_export_capable=True, + mains_gas_available=True, + gas_smart_meter=True, + gas_meter_accessible=True, + measurements_location="Internal", + )