Model/tests/repositories/epc
Daniel Roth c9cb59ea78 Break lodged-UPRN duplicates by latest inspection_date, then id
inspection_date is non-null on epc_property, so it is a better winner for
a shared-UPRN collision than insertion order: the latest-surveyed lodged
row wins. id DESC stays as the deterministic secondary, so a same-UPRN,
same-inspection_date tie falls to the highest id.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 10:46:01 +00:00
..
__init__.py feat(epc): EPC persistence round-trip fidelity + JSONB code columns (Slice 1 #1129) 2026-05-30 19:26:18 +00:00
test_epc_batch_save.py Fetch a property's lodged EPC by UPRN, not property_id 2026-07-14 10:35:51 +00:00
test_epc_bulk_read.py Fetch a property's lodged EPC by UPRN, not property_id 2026-07-14 10:35:51 +00:00
test_epc_idempotent_save.py Fetch a property's lodged EPC by UPRN, not property_id 2026-07-14 10:35:51 +00:00
test_epc_lodged_uprn_collision.py Break lodged-UPRN duplicates by latest inspection_date, then id 2026-07-14 10:46:01 +00:00
test_epc_persistence_field_coverage.py feat: reconstruct top-level extract_fans_count from its persisted mirror 🟩 2026-06-26 18:54:43 +00:00
test_epc_predicted_slot.py Fetch a property's lodged EPC by UPRN, not property_id 2026-07-14 10:35:51 +00:00
test_epc_round_trip.py test: 7 calculator-read EPC fields must round-trip 🟥 2026-06-26 18:42:51 +00:00