gendesign/backend/tests
lekss361 50c7668046 feat(obj-3): migrate Site Finder competitors to objective_lots ground truth
Enrich competitor_rows query with pricing from objective_lots via
objective_complex_mapping JOIN backbone (domrf_obj_id → project_name).

New fields in competitors[]: avg_price_per_m2_rub (81% coverage vs 0.3%
from domrf_kn_flats), avg_area_pd, units_sold, units_available,
lots_with_price. LEFT JOIN preserves competitors without mapping (fields
= NULL), no regression on existing competitor count/order.

Also fix test_velocity.py: update _sales_row mock with has_mapping field
and VelocityResult constructor with velocity_data_available/velocity_source
fields introduced in OBJ-2 (velocity.py had diverged from test mocks).
All 33 velocity + gate_verdict tests pass.

Closes #307 (OBJ-3 sub-task)
2026-05-17 23:02:18 +03:00
..
api fix(sf-02): добавить site_status/ready_dt в /analyze competitors + sort строящиеся first 2026-05-17 13:29:59 +03:00
integration test(infra): integration phantom column gate (#197) (#216) 2026-05-16 13:07:13 +00:00
scrapers fix(#231): repair test_rate_limit_semaphore regression + docstring sync 2026-05-17 10:22:16 +03:00
services fix(sf-09): capacity-aware redistribute (round 2) — bounded + correct invariant 2026-05-17 15:30:50 +03:00
smoke fix(parcels): _parse_floors handle int (post-migration #169) (#176) 2026-05-15 15:08:16 +03:00
workers perf(cadastre): freshness skip + grid-walk heartbeat + log noise reduction (#187) 2026-05-15 23:02:37 +03:00
__init__.py init 2026-04-25 13:45:19 +03:00
test_admin_weight_profiles.py feat(#114): seed 3 default weight presets + include_system API param 2026-05-16 22:49:56 +03:00
test_concepts_stub.py init 2026-04-25 13:45:19 +03:00
test_gate_verdict.py feat(#29,#232): wire cad_parcels.permitted_use in analyze + cad_zouit fallback (G2+G3) 2026-05-17 08:17:22 +03:00
test_health.py init 2026-04-25 13:45:19 +03:00
test_layout_signature.py feat(parcels): layout signature schemas + extractor (#113 PR A) (#193) 2026-05-16 07:52:34 +00:00
test_layout_tz_pdf.py feat(layouts): PDF ТЗ endpoint + BestLayoutsBlock UI (#113 PR D) (#199) 2026-05-16 09:53:05 +00:00
test_nspd_client.py fix(#231): address re-review blockers — per-instance semaphore + time_limit + test mocks 2026-05-17 10:13:34 +03:00
test_nspd_sync.py fix(#244): harvest_quarter — CAST CASE WHEN params (psycopg3 AmbiguousParameter) (#246) 2026-05-17 05:53:08 +00:00
test_quarter_dump_lookup.py feat(site-finder): integrate nspd_quarter_dumps cache в analyze_parcel (#94 Sprint 1.1 FINAL) (#116) 2026-05-13 09:14:19 +03:00
test_sentry_init.py feat(backend): sentry-sdk init для FastAPI + Celery (#204 backend) (#207) 2026-05-16 15:09:16 +00:00
test_velocity.py feat(obj-3): migrate Site Finder competitors to objective_lots ground truth 2026-05-17 23:02:18 +03:00
test_weight_profiles.py feat(site-finder): weight profiles service — Pydantic + CRUD (#114 sub-PR 2/4) (#137) 2026-05-15 00:29:37 +03:00