mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
map water heating cylinder size 🟥
This commit is contained in:
parent
b64c9d275f
commit
c558b79b68
3 changed files with 8 additions and 2 deletions
|
|
@ -267,3 +267,6 @@ class TestPdfToEpcPropertyDataFixture2:
|
|||
|
||||
def test_cylinder_insulation_thickness(self, result: EpcPropertyData) -> None:
|
||||
assert result.sap_heating.cylinder_insulation_thickness_mm == 38
|
||||
|
||||
def test_cylinder_size(self, result: EpcPropertyData) -> None:
|
||||
assert result.sap_heating.cylinder_size == "Normal (90-130 litres)"
|
||||
|
|
|
|||
|
|
@ -398,6 +398,9 @@ class TestWaterHeatingCylinderThickness:
|
|||
def test_cylinder_insulation_thickness_mm_absent(self, hhw_no_cylinder: HeatingAndHotWater) -> None:
|
||||
assert hhw_no_cylinder.water_heating.insulation_thickness_mm is None
|
||||
|
||||
def test_cylinder_size(self, hhw: HeatingAndHotWater) -> None:
|
||||
assert hhw.water_heating.cylinder_size == "Normal (90-130 litres)"
|
||||
|
||||
|
||||
class TestHeatingAndHotWater:
|
||||
@pytest.fixture
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ class SapHeating:
|
|||
instantaneous_wwhrs: InstantaneousWwhrs
|
||||
main_heating_details: List[MainHeatingDetail]
|
||||
has_fixed_air_conditioning: bool
|
||||
cylinder_size: Optional[int] = (
|
||||
None # int code from API; not directly available from site notes
|
||||
cylinder_size: Optional[Union[int, str]] = (
|
||||
None # int code from API; str (e.g. "Normal (90-130 litres)") from site notes
|
||||
)
|
||||
water_heating_code: Optional[int] = None # TODO: make enum?
|
||||
water_heating_fuel: Optional[int] = None # TODO: make enum?
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue