diff --git a/tradein-mvp/backend/tests/tasks/test_domclick_detail_backfill.py b/tradein-mvp/backend/tests/tasks/test_domclick_detail_backfill.py index ff10c056..dc68ad7c 100644 --- a/tradein-mvp/backend/tests/tasks/test_domclick_detail_backfill.py +++ b/tradein-mvp/backend/tests/tasks/test_domclick_detail_backfill.py @@ -162,9 +162,14 @@ async def test_backfill_processes_snapshot_with_cookies_threaded() -> None: assert result.blocked == 0 assert result.failed == 0 assert mock_fetch.call_count == 3 - mock_bf_cls.assert_called_once_with( - source="domclick", endpoint=fake_settings.browser_http_endpoint, reuse_context=True - ) + # #3197: конструктор с 08.2026 несёт ещё proxy_provider/use_pool/environment + # (проводка прокси-пула) -- здесь проверяем только то, что нужно этому тесту, + # полная проводка покрыта tests/test_3197_domclick_proxy_pool_wiring.py. + mock_bf_cls.assert_called_once() + _, bf_kwargs = mock_bf_cls.call_args + assert bf_kwargs["source"] == "domclick" + assert bf_kwargs["endpoint"] == fake_settings.browser_http_endpoint + assert bf_kwargs["reuse_context"] is True for call in mock_fetch.call_args_list: _, kwargs = call assert kwargs.get("cookies") == fake_cookies