mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
The worksheet build_epc() fixtures wrapped a module-level SECTION_6_VERTICAL_ WINDOWS tuple in list(), so every call returned the SAME SapWindow objects. A test that mutated a returned window (the glazing slices flip glazing_type to single) leaked that change into every later build_epc() -- which surfaced as double_glazing-product failures in the first-run integration tests only when test_console ran first in the same process. Deep-copy the windows per call in all six fixtures (000474/477/480/487/490/516) so each EpcPropertyData owns an independent window graph, and drop the now-redundant defensive copy at the glazing test's call site. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| addresses | ||
| billing | ||
| fuel_rates | ||
| modelling | ||
| property | ||
| property_baseline | ||
| sap10_calculator | ||
| tasks | ||
| __init__.py | ||
| test_building_geometry.py | ||
| test_postcode.py | ||