mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Resolve an electric-boiler override to SAP 191 dragging electricity 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
de4e44aacc
commit
e83c420f3b
1 changed files with 13 additions and 0 deletions
|
|
@ -101,6 +101,19 @@ def test_solid_fuel_room_heaters_decode_off_gas_cpsu(
|
|||
assert simulation.heating.sap_main_heating_code == code
|
||||
|
||||
|
||||
def test_electric_boiler_decodes_to_191_and_drags_electricity() -> None:
|
||||
# An "A rated NA" boiler (all-electric per its main_fuel override) was funnelled
|
||||
# into Gas CPSU (120, mains gas). It is a direct-acting electric boiler (SAP 191)
|
||||
# and unambiguously electric, so the archetype drags electricity (29) — never
|
||||
# leaving a mains-gas fuel to bleed through (ADR-0045).
|
||||
simulation = main_heating_overlay_for("Electric boiler", 0)
|
||||
|
||||
assert simulation is not None
|
||||
assert simulation.heating is not None
|
||||
assert simulation.heating.sap_main_heating_code == 191
|
||||
assert simulation.heating.main_fuel_type == 29
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("main_heating_value", "code"),
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue