diff --git a/backend/documents_parser/tests/test_extractor.py b/backend/documents_parser/tests/test_extractor.py index d037a6bc..fa185180 100644 --- a/backend/documents_parser/tests/test_extractor.py +++ b/backend/documents_parser/tests/test_extractor.py @@ -574,6 +574,20 @@ class TestRenewables: ) +class TestRenewablesPvConnection: + @pytest.fixture + def renewables(self) -> Renewables: + return PasHubRdSapSiteNotesExtractor( + load_text_fixture_3() + ).extract_renewables() + + def test_pv_connection(self, renewables: Renewables) -> None: + assert renewables.pv_connection == "Connected to dwellings electricity meter" + + def test_percent_roof_covered_pv(self, renewables: Renewables) -> None: + assert renewables.percent_roof_covered_pv == 45 + + class TestRoomCountElements: @pytest.fixture def rce(self) -> RoomCountElements: diff --git a/datatypes/epc/surveys/pashub_rdsap_site_notes.py b/datatypes/epc/surveys/pashub_rdsap_site_notes.py index 1666ca2e..73a58aa6 100644 --- a/datatypes/epc/surveys/pashub_rdsap_site_notes.py +++ b/datatypes/epc/surveys/pashub_rdsap_site_notes.py @@ -229,6 +229,8 @@ class Renewables: photovoltaic_array: bool number_of_pv_batteries: int hydro: bool + pv_connection: Optional[str] = None + percent_roof_covered_pv: Optional[int] = None @dataclass