From 26bcb3e9a683275029f1ce1665e1757674d50aec Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Thu, 2 Jul 2026 15:57:04 +0000 Subject: [PATCH] Pass new cylinder fields through _make_audit test helper PropertyAudit gained three required cylinder fields; the pre-existing divergence/goal-shortfall tests construct it via _make_audit, which wasn't updated. Co-Authored-By: Claude Fable 5 --- tests/scripts/test_audit_anomalies.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/scripts/test_audit_anomalies.py b/tests/scripts/test_audit_anomalies.py index 2cc510bba..dd8771500 100644 --- a/tests/scripts/test_audit_anomalies.py +++ b/tests/scripts/test_audit_anomalies.py @@ -20,6 +20,9 @@ def _make_audit( post_band: Optional[str] = None, post_sap: Optional[float] = None, cost_of_works: Optional[float] = None, + has_hot_water_cylinder: Optional[bool] = None, + cylinder_insulation_type: Optional[int] = None, + cylinder_insulation_thickness_mm: Optional[float] = None, ) -> PropertyAudit: return PropertyAudit( property_id=1, @@ -41,6 +44,9 @@ def _make_audit( solar_sap_points=None, solar_bill_savings=None, n_measures=0, + has_hot_water_cylinder=has_hot_water_cylinder, + cylinder_insulation_type=cylinder_insulation_type, + cylinder_insulation_thickness_mm=cylinder_insulation_thickness_mm, )