mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Decode old/slimline/convector storage-heater heating overrides 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d8ab3f6ec7
commit
4fbd8d5999
1 changed files with 20 additions and 0 deletions
|
|
@ -53,6 +53,26 @@ def test_heating_archetypes_decode_to_their_sap_codes(
|
||||||
assert simulation.heating.sap_main_heating_code == code
|
assert simulation.heating.sap_main_heating_code == code
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
("main_heating_value", "code"),
|
||||||
|
[
|
||||||
|
("Electric storage heaters, old", 401),
|
||||||
|
("Electric storage heaters, slimline", 402),
|
||||||
|
("Electric storage heaters, convector", 403),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
def test_storage_heater_subtypes_decode_to_their_codes(
|
||||||
|
main_heating_value: str, code: int
|
||||||
|
) -> None:
|
||||||
|
# Act
|
||||||
|
simulation = main_heating_overlay_for(main_heating_value, 0)
|
||||||
|
|
||||||
|
# Assert
|
||||||
|
assert simulation is not None
|
||||||
|
assert simulation.heating is not None
|
||||||
|
assert simulation.heating.sap_main_heating_code == code
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"main_heating_value",
|
"main_heating_value",
|
||||||
["Unknown", "", "Air source heat pump", "Community heating"],
|
["Unknown", "", "Air source heat pump", "Community heating"],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue