Merge pull request #1415 from Hestia-Homes/fix/repin-golden-0036-tune-up-after-1399

Re-pin golden cert 0036 after #1399 (its PCDB boiler now fires a zoned tune-up)
This commit is contained in:
Jun-te Kim 2026-07-02 10:01:33 +01:00 committed by GitHub
commit 0f6e6e4936
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,10 +169,17 @@ def test_few_measure_cert_surfaces_only_its_fired_measures_triggers() -> None:
# Assert — 0036's gain-maximising package is solid-floor insulation plus the
# low-energy-lighting upgrade (it lodges 7 low-energy + 0 incandescent fixed
# bulbs, so the LED top-up is a cheap positive-SAP lever, ADR-0023), and
# nothing else.
# bulbs, so the LED top-up is a cheap positive-SAP lever, ADR-0023) plus a
# zoned system tune-up: 0036 lodges its gas boiler as a PCDB main-heating
# index with no SAP code, which the heating generators now classify as a wet
# boiler eligible for a tune-up (#1399), so the boiler's controls upgrade
# joins the package.
triggers: dict[str, MeasureTrigger] = _triggers_by_measure(report)
assert set(triggers) == {"solid_floor_insulation", "low_energy_lighting"}
assert set(triggers) == {
"solid_floor_insulation",
"low_energy_lighting",
"system_tune_up_zoned",
}
assert triggers["solid_floor_insulation"].triggers == {
"floor_insulation_thickness": None,
"floor_construction_type": "Solid",