mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Add Electric room heaters as a canonical landlord heating archetype 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ada2bc078e
commit
2b0b7eff91
1 changed files with 13 additions and 0 deletions
|
|
@ -318,6 +318,19 @@ def test_the_three_heating_overrides_compose_without_conflict() -> None:
|
||||||
assert result.sap_heating.water_heating_fuel == 29
|
assert result.sap_heating.water_heating_fuel == 29
|
||||||
|
|
||||||
|
|
||||||
|
def test_electric_room_heaters_member_decodes_to_the_room_heater_code() -> None:
|
||||||
|
# Arrange — the canonical landlord archetype for direct-acting room heaters
|
||||||
|
member = MainHeatingSystemType.ELECTRIC_ROOM_HEATERS
|
||||||
|
|
||||||
|
# Act
|
||||||
|
simulation = main_heating_overlay_for(member.value, 0)
|
||||||
|
|
||||||
|
# Assert — member value stays in lock-step with the overlay (code 691)
|
||||||
|
assert simulation is not None
|
||||||
|
assert simulation.heating is not None
|
||||||
|
assert simulation.heating.sap_main_heating_code == 691
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"member",
|
"member",
|
||||||
[m for m in MainHeatingSystemType if m is not MainHeatingSystemType.UNKNOWN],
|
[m for m in MainHeatingSystemType if m is not MainHeatingSystemType.UNKNOWN],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue