@@ -377,7 +377,7 @@ async def test_new_proxy_info_rotating_urls_with_sessions() -> None:
377377 assert proxy_info .url == proxy_urls [0 ]
378378
379379
380- @pytest .mark .usefixtures ('patched_httpx_client ' )
380+ @pytest .mark .usefixtures ('patched_impit_client ' )
381381async def test_initialize_with_valid_configuration (
382382 monkeypatch : pytest .MonkeyPatch ,
383383 httpserver : HTTPServer ,
@@ -420,7 +420,7 @@ async def test_initialize_without_password_or_token() -> None:
420420 await proxy_configuration .initialize ()
421421
422422
423- @pytest .mark .usefixtures ('patched_httpx_client ' )
423+ @pytest .mark .usefixtures ('patched_impit_client ' )
424424async def test_initialize_with_manual_password (monkeypatch : pytest .MonkeyPatch , httpserver : HTTPServer ) -> None :
425425 dummy_proxy_status_url = str (httpserver .url_for ('/' )).removesuffix ('/' )
426426 monkeypatch .setenv (ApifyEnvVars .PROXY_STATUS_URL .value , dummy_proxy_status_url )
@@ -442,7 +442,7 @@ async def test_initialize_with_manual_password(monkeypatch: pytest.MonkeyPatch,
442442 assert proxy_configuration .is_man_in_the_middle is False
443443
444444
445- @pytest .mark .usefixtures ('patched_httpx_client ' )
445+ @pytest .mark .usefixtures ('patched_impit_client ' )
446446async def test_initialize_prefering_password_from_env_over_calling_api (
447447 monkeypatch : pytest .MonkeyPatch ,
448448 httpserver : HTTPServer ,
@@ -471,7 +471,7 @@ async def test_initialize_prefering_password_from_env_over_calling_api(
471471 assert len (patched_apify_client .calls ['user' ]['get' ]) == 0 # type: ignore[attr-defined]
472472
473473
474- @pytest .mark .usefixtures ('patched_httpx_client ' )
474+ @pytest .mark .usefixtures ('patched_impit_client ' )
475475@pytest .mark .skip (reason = 'There are issues with log propagation to caplog, see issue #462.' )
476476async def test_initialize_with_manual_password_different_than_user_one (
477477 monkeypatch : pytest .MonkeyPatch ,
@@ -506,7 +506,7 @@ async def test_initialize_with_manual_password_different_than_user_one(
506506 assert 'The Apify Proxy password you provided belongs to a different user' in caplog .records [0 ].message
507507
508508
509- @pytest .mark .usefixtures ('patched_httpx_client ' )
509+ @pytest .mark .usefixtures ('patched_impit_client ' )
510510async def test_initialize_when_not_connected (monkeypatch : pytest .MonkeyPatch , httpserver : HTTPServer ) -> None :
511511 dummy_connection_error = 'DUMMY_CONNECTION_ERROR'
512512 dummy_proxy_status_url = str (httpserver .url_for ('/' )).removesuffix ('/' )
0 commit comments