mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Map main_heating_controls on full-SAP certs for the FE panel 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
95701d03e4
commit
0440de4965
1 changed files with 11 additions and 0 deletions
|
|
@ -164,6 +164,17 @@ class TestFromSapSchema17_1DisplayElements:
|
|||
assert result.hot_water is not None
|
||||
assert result.hot_water.description == "From main system"
|
||||
|
||||
def test_maps_main_heating_controls_display_element(
|
||||
self, result: EpcPropertyData
|
||||
) -> None:
|
||||
# "Heating Control" panel row. Full-SAP lodges it as a list; mirror the
|
||||
# 21.0.1 mapper and take the first control system.
|
||||
assert result.main_heating_controls is not None
|
||||
assert (
|
||||
result.main_heating_controls.description
|
||||
== "Time and temperature zone control"
|
||||
)
|
||||
|
||||
|
||||
class TestFullSapHasHotWaterCylinderFallback:
|
||||
"""Some full-SAP certs (e.g. SAP-Schema-17.0 cert 8265-7433-3220-9736-7902)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue