mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
_secondary_heating_fraction_for_category returns 0.10 for category 11 (electric ceiling heating) 🟥
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c89ab7692d
commit
a19b3dada1
1 changed files with 2 additions and 0 deletions
|
|
@ -4958,6 +4958,7 @@ def test_secondary_heating_fraction_for_category_full_table_11_coverage() -> Non
|
|||
assert _secondary_heating_fraction_for_category(5) == 0.10
|
||||
assert _secondary_heating_fraction_for_category(6) == 0.10
|
||||
assert _secondary_heating_fraction_for_category(7) == 0.15
|
||||
assert _secondary_heating_fraction_for_category(8) == 0.10 # was untested
|
||||
# Category 9 = warm-air systems (NOT heat pump). A gas/oil warm-air
|
||||
# unit is an "All gas, liquid and solid fuel systems" row (0.10);
|
||||
# electric warm air is "Other electric systems" (also 0.10) — so 0.10
|
||||
|
|
@ -4966,6 +4967,7 @@ def test_secondary_heating_fraction_for_category_full_table_11_coverage() -> Non
|
|||
# secondary) previously raised UnmappedSapCode here, blocking it.
|
||||
assert _secondary_heating_fraction_for_category(9) == 0.10
|
||||
assert _secondary_heating_fraction_for_category(10) == 0.20
|
||||
assert _secondary_heating_fraction_for_category(11) == 0.10 # electric ceiling heating (SAP code 701)
|
||||
# Absent
|
||||
assert _secondary_heating_fraction_for_category(None) == 0.10
|
||||
# Lodging present but unmapped → raise
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue