mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Map heating boiler properties 🟥
This commit is contained in:
parent
d323fe3277
commit
bf31a35e6d
1 changed files with 29 additions and 0 deletions
|
|
@ -603,3 +603,32 @@ class TestFromSiteNotesFloorConstruction:
|
|||
def test_floor_u_value_known(self, result: EpcPropertyData) -> None:
|
||||
# building_construction.floor.floor_u_value_known: false
|
||||
assert result.sap_building_parts[0].floor_u_value_known is False
|
||||
|
||||
|
||||
class TestFromSiteNotesHeatingBoiler:
|
||||
"""
|
||||
Fixture: pashub_rdsap_site_notes_example1.json
|
||||
Boiler: Vaillant ecoFIT sustain, condensing, no weather compensator, pump age unknown.
|
||||
"""
|
||||
|
||||
@pytest.fixture
|
||||
def survey(self) -> PasHubRdSapSiteNotes:
|
||||
return from_dict(
|
||||
PasHubRdSapSiteNotes, load("pashub_rdsap_site_notes_example1.json")
|
||||
)
|
||||
|
||||
@pytest.fixture
|
||||
def result(self, survey: PasHubRdSapSiteNotes) -> EpcPropertyData:
|
||||
return EpcPropertyDataMapper.from_site_notes(survey)
|
||||
|
||||
def test_condensing(self, result: EpcPropertyData) -> None:
|
||||
# heating_and_hot_water.main_heating.condensing: true
|
||||
assert result.sap_heating.main_heating_details[0].condensing is True
|
||||
|
||||
def test_weather_compensator(self, result: EpcPropertyData) -> None:
|
||||
# heating_and_hot_water.main_heating.weather_compensator: false
|
||||
assert result.sap_heating.main_heating_details[0].weather_compensator is False
|
||||
|
||||
def test_central_heating_pump_age_str(self, result: EpcPropertyData) -> None:
|
||||
# heating_and_hot_water.main_heating.central_heating_pump_age: "Unknown"
|
||||
assert result.sap_heating.main_heating_details[0].central_heating_pump_age_str == "Unknown"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue