Model/tests/domain/sap10_calculator/rdsap
Khalim Conn-Kowlessar 775232b4e7 test(pv): credit PV only when connected to dwelling meter (pv_connection) 🟥
RdSAP 10 §11.1 / SAP 10.2 Appendix M: PV is included in a dwelling's
assessment only if connected to the dwelling's own electricity meter. The
gov-API pv_connection enum encodes this — 0=no PV, 1=present-but-not-
connected, 2=connected. Corpus-validated (57 PV certs: pv_connection=1 MAE
4.48->1.22 without credit, 0/5 need it; pv_connection=2 needs it, MAE 0.98
vs 10.29) and Elmhurst-proven (connected SAP 87 vs not-connected 74).

cert_to_inputs currently credits a pv_connection=1 array; the test pins that
it must contribute zero generation. Adds pv_connection to make_minimal_sap10_epc.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 13:32:20 +00:00
..
fixtures/golden fix(ventilation): map API mechanical_ventilation_index_number for MEV fan electricity 2026-06-08 23:16:34 +00:00
__init__.py Move sap10_calculator tests to tests/domain/sap10_calculator/ for CI 2026-06-02 16:58:00 +00:00
test_cert_to_inputs.py test(pv): credit PV only when connected to dwelling meter (pv_connection) 🟥 2026-06-29 13:32:20 +00:00
test_golden_fixtures.py fix(water-heating): count electric showers in Noutlets for mixer demand (App J) 2026-06-13 23:31:02 +00:00