mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Drag electricity as an electric room heater's natural fuel 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0cd30a13e6
commit
5a29238480
1 changed files with 17 additions and 0 deletions
|
|
@ -419,3 +419,20 @@ def test_solid_fuel_room_heater_drags_its_coherent_room_heater_companions() -> N
|
|||
assert heating.main_heating_category == 10
|
||||
assert heating.main_heating_control == 2601
|
||||
assert heating.meter_type == "Single"
|
||||
|
||||
|
||||
def test_electric_room_heaters_drag_their_natural_electricity_fuel() -> None:
|
||||
# A landlord names the system; an electric room heater's natural fuel is
|
||||
# unambiguously electricity (RdSAP main_fuel code 29). The overlay drags it so
|
||||
# a system-only override is self-coherent even on a cert that lodged a
|
||||
# different fuel — a later `main_fuel` override still wins (last-wins
|
||||
# composition), and a contradicting fuel is logged, not silently kept
|
||||
# (ADR-0041 natural-fuel coherence).
|
||||
|
||||
# Act
|
||||
simulation = main_heating_overlay_for("Electric room heaters", 0)
|
||||
|
||||
# Assert
|
||||
assert simulation is not None
|
||||
assert simulation.heating is not None
|
||||
assert simulation.heating.main_fuel_type == 29
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue