From ce59413f46f80ee7ca92e6ce2de2b5b1e0e92e33 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 29 Jun 2026 15:58:34 +0000 Subject: [PATCH] =?UTF-8?q?Map=20landlord=20electric=20room=20heaters=20to?= =?UTF-8?q?=20the=20direct-acting=20room-heater=20SAP=20code=20?= =?UTF-8?q?=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/domain/epc/test_main_heating_system_overlay.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/domain/epc/test_main_heating_system_overlay.py b/tests/domain/epc/test_main_heating_system_overlay.py index e4bd544c..e102336e 100644 --- a/tests/domain/epc/test_main_heating_system_overlay.py +++ b/tests/domain/epc/test_main_heating_system_overlay.py @@ -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"), [