Map landlord electric room heaters to the direct-acting room-heater SAP code 🟥

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-06-29 15:58:34 +00:00
parent 597510b996
commit ce59413f46

View file

@ -36,6 +36,16 @@ def test_gas_combi_overlays_the_primary_heating_code() -> None:
assert simulation.heating.sap_main_heating_code == 104
def test_electric_room_heaters_overlay_the_direct_acting_room_heater_code() -> None:
# Act — panel/convector/radiant direct-acting electric room heaters
simulation = main_heating_overlay_for("Electric room heaters", 0)
# Assert — SAP Table 4a code 691, NOT convector storage (403).
assert simulation is not None
assert simulation.heating is not None
assert simulation.heating.sap_main_heating_code == 691
@pytest.mark.parametrize(
("main_heating_value", "code"),
[