Merge pull request 'fix(tradein): add cian_proxy_url to test _mock_settings — unblock deploy (#923)' (#925) from fix/cian-proxy-test-mock into main
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / test (push) Successful in 30s
Deploy Trade-In / build-backend (push) Successful in 45s
Deploy Trade-In / deploy (push) Successful in 37s
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / test (push) Successful in 30s
Deploy Trade-In / build-backend (push) Successful in 45s
Deploy Trade-In / deploy (push) Successful in 37s
Reviewed-on: #925
This commit is contained in:
commit
26c0b94131
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,10 @@ def _mock_settings(
|
||||||
"""Minimal settings stand-in with fields read by proxy helpers and scraper __aenter__."""
|
"""Minimal settings stand-in with fields read by proxy helpers and scraper __aenter__."""
|
||||||
return SimpleNamespace(
|
return SimpleNamespace(
|
||||||
scraper_proxy_url=scraper_proxy_url,
|
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,
|
yandex_cookies_file=yandex_cookies_file,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue