Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
1073ebeeb9 test(tradein): patch _geoportal_house_match in cadastral-before-yandex test
The new geoportal house-match tier runs first in geocode(); this legacy
cadastral test must mock it to None so it still exercises the cadastral
forward path (otherwise the MagicMock db row leaks through the new tier).
2026-06-19 18:03:25 +03:00

View file

@ -353,6 +353,8 @@ async def test_geocode_uses_cadastral_before_yandex() -> None:
with (
patch("app.services.geocoder._cache_get", return_value=None),
# geoportal house-match (new primary local tier) misses → cadastral path exercised
patch("app.services.geocoder._geoportal_house_match", return_value=None),
# anchored house-match (new primary cadastral step) misses → legacy forward used
patch("app.services.geocoder._cadastral_house_match", return_value=None),
patch(