diff --git a/tests/orchestration/test_ara_first_run_pipeline_integration.py b/tests/orchestration/test_ara_first_run_pipeline_integration.py index 5bc08901..bed58c75 100644 --- a/tests/orchestration/test_ara_first_run_pipeline_integration.py +++ b/tests/orchestration/test_ara_first_run_pipeline_integration.py @@ -364,12 +364,18 @@ def test_modelling_optimises_and_persists_a_multi_measure_plan( assert plan.cost_of_works is not None assert plan.cost_of_works > 0.0 # Plan-level energy/bill figures derived from the post-package bill vs the - # baseline bill at the run's Fuel Rates (ADR-0014 amendment). The package - # improves the property, so it consumes less energy and costs less to run. + # baseline bill at the run's Fuel Rates (ADR-0014 amendment). The max-gain + # fallback package is ASHP-led on a *gas* dwelling whose suspended floor is + # correctly modelled as exposed (is_exposed_floor now round-trips through + # persistence — #TBD): it saves a large amount of delivered energy, but the + # gas→electricity fuel switch trades cheap gas kWh for pricier electricity + # kWh, so the *bill* is roughly neutral (marginally negative). The exact + # value is pinned by the telescoping cascade below; here we only assert the + # figure is produced (sign is not load-bearing for a SAP-max fallback). assert plan.post_energy_bill is not None and plan.post_energy_bill > 0.0 assert plan.post_energy_consumption is not None assert plan.post_energy_consumption > 0.0 - assert plan.energy_bill_savings is not None and plan.energy_bill_savings > 0.0 + assert plan.energy_bill_savings is not None assert plan.energy_consumption_savings is not None assert plan.energy_consumption_savings > 0.0