mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Recognise community boilers as a heat-network system 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0c12f70589
commit
c7b2fe7a1b
1 changed files with 16 additions and 0 deletions
|
|
@ -488,3 +488,19 @@ def test_air_source_heat_pump_drags_its_coherent_companions() -> None:
|
|||
assert heating.main_heating_category == 4
|
||||
assert heating.main_fuel_type == 29
|
||||
assert heating.meter_type == "Single"
|
||||
|
||||
|
||||
def test_community_boilers_decode_to_the_heat_network_boiler_code() -> None:
|
||||
# A community/heat-network scheme driven by boilers is SAP Table 4a code 301
|
||||
# (the calculator derives the heat-source efficiency + DLF from it). It must
|
||||
# decode to 301, not the Gas CPSU (120) the under-populated taxonomy forced —
|
||||
# a single-dwelling gas wet boiler is the wrong picture for a heat network
|
||||
# (ADR-0041). A generic "Community heating" with no named source stays None.
|
||||
|
||||
# Act
|
||||
simulation = main_heating_overlay_for("Community heating, boilers", 0)
|
||||
|
||||
# Assert — SAP Table 4a code 301 (boiler-driven community heating).
|
||||
assert simulation is not None
|
||||
assert simulation.heating is not None
|
||||
assert simulation.heating.sap_main_heating_code == 301
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue