gendesign/tradein-mvp/backend/tests/services
Light1YT 6545568778 feat(tradein): render expected-sold price alongside asking in estimate PDF (#648 S5b)
Mirror the S5a web dual-display in the WeasyPrint PDF cover: equal-prominence
«Ожидаемая цена продажи» figure (value + range + ₽/м²) next to «Ориентир
запроса», with a −N% discount chip and the ДКП-Росреестра explainer. Graceful
single-asking fallback when expected_sold is None/0; each sold sub-field guarded.

Pure rendering change — no DB/schema/API impact. WeasyPrint import made lazy so
the HTML builders are testable without the native GTK stack.

- trade_in_pdf.py: _dual_price_block / _price_figure_cell / _discount_pct + cover wiring
- tests/services/test_trade_in_pdf_dual_price.py: 10 unit tests
2026-05-29 19:09:17 +05:00
..
__init__.py feat(tradein): cadastral reverse geocode via main backend cad_buildings (#492) 2026-05-24 07:31:12 +00:00
test_cadastral_reverse.py feat(tradein): DaData /suggest tier в /suggest endpoint (PR Q2) 2026-05-27 19:08:58 +05:00
test_dadata.py feat(tradein): DaData /suggest tier в /suggest endpoint (PR Q2) 2026-05-27 19:08:58 +05:00
test_estimator_precision.py feat(tradein): бейдж точности адреса (qc_geo) на карточке оценки (accuracy #1) 2026-05-28 15:37:33 +05:00
test_trade_in_pdf_dual_price.py feat(tradein): render expected-sold price alongside asking in estimate PDF (#648 S5b) 2026-05-29 19:09:17 +05:00