fix(tradein): add cian_proxy_url to test _mock_settings — unblock deploy (#923)

PR #923 switched Cian scrapers to settings.cian_proxy_url but the shared
_mock_settings helper in test_scraper_proxy.py still only exposed scraper_proxy_url,
so pre-existing cian proxy-wiring tests broke with AttributeError → deploy pytest gate failed.
Mirror scraper_proxy_url into cian_proxy_url in the mock.
This commit is contained in:
bot-backend 2026-05-31 22:34:16 +03:00
parent 02af421799
commit b9690d4d63

View file

@ -28,6 +28,10 @@ def _mock_settings(
"""Minimal settings stand-in with fields read by proxy helpers and scraper __aenter__."""
return SimpleNamespace(
scraper_proxy_url=scraper_proxy_url,
# Cian scrapers read settings.cian_proxy_url (property: CIAN_PROXY_URL or
# scraper_proxy_url fallback). Mirror scraper_proxy_url here so the existing
# cian proxy-wiring assertions keep passing (#923 follow-up).
cian_proxy_url=scraper_proxy_url,
yandex_cookies_file=yandex_cookies_file,
)