gendesign/tradein-mvp/backend
lekss361 cea2af8d3d test(tradein-matching): fix off-by-one in 5 match_house tests + add lock regression
Advisory lock in match_or_create_house() is now the first db.execute() call;
existing tests built side_effect lists assuming the tier query was first,
causing each to read off-by-one (Tier 0 cadastr lookup gets None, falls
through, etc.).

Prepend a None row to all 5 test_match_house_* _make_db lists. Add
test_match_house_advisory_lock_called_first as a regression guard against
future re-ordering of the lock call.

Per PR #501 reviewer feedback.
2026-05-24 13:37:46 +03:00
..
app fix(tradein-matching): pg_advisory_xact_lock to prevent duplicate house INSERTs 2026-05-24 13:15:50 +03:00
data/sql fix(tradein-sql): rename dup 030, add trade_in_estimates geom, drop dup indexes (#500) 2026-05-24 10:04:40 +00:00
tests test(tradein-matching): fix off-by-one in 5 match_house tests + add lock regression 2026-05-24 13:37:46 +03:00
.dockerignore feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
Dockerfile feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
pyproject.toml feat(tradein): Phase 3.2 — /api/v1/search endpoint + Redis cache (#479) 2026-05-23 14:44:22 +00:00