fix(tradein): чинит main-red — патч _geoportal_house_match в cadastral-тесте (хвост #1786) #1787
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1787
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/tradein-geoportal-test-cadastral"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Проблема
PR #1786 (ингест геопортала ЕКБ) смержили на коммите
64d113d— до того как тест-фикс попал в ветку. В результате main красный:tests/services/test_cadastral_reverse.py::test_geocode_uses_cadastral_before_yandexпадает.Причина: новый geoportal-tier
_geoportal_house_match()стоит первым вgeocode(), но этот legacy-тест его не мокал → MagicMock-db протекает через новый tier (lat=1.0) вместо ожидаемого cadastral-пути. Воркер пропатчил аналогичные тесты вtest_geocoder_cadastral_matcher.py, но этот в другом файле пропустил, а merge опередил мой post-fix push в ветку #1786.Фикс
Один патч в
with-блок теста:→ новый tier мимо → тест проверяет cadastral-путь как задумано.
Локально:
pytest ...::test_geocode_uses_cadastral_before_yandex→ 1 passed. Это единственныйgeocode()-тест в файле (проверил grep), CI и показывал ровно 1 фейл. Pre-commit/ruff green.