@@ -377,7 +377,7 @@ async def test_new_proxy_info_rotating_urls_with_sessions() -> None:
377
377
assert proxy_info .url == proxy_urls [0 ]
378
378
379
379
380
- @pytest .mark .usefixtures ('patched_httpx_client ' )
380
+ @pytest .mark .usefixtures ('patched_impit_client ' )
381
381
async def test_initialize_with_valid_configuration (
382
382
monkeypatch : pytest .MonkeyPatch ,
383
383
httpserver : HTTPServer ,
@@ -420,7 +420,7 @@ async def test_initialize_without_password_or_token() -> None:
420
420
await proxy_configuration .initialize ()
421
421
422
422
423
- @pytest .mark .usefixtures ('patched_httpx_client ' )
423
+ @pytest .mark .usefixtures ('patched_impit_client ' )
424
424
async def test_initialize_with_manual_password (monkeypatch : pytest .MonkeyPatch , httpserver : HTTPServer ) -> None :
425
425
dummy_proxy_status_url = str (httpserver .url_for ('/' )).removesuffix ('/' )
426
426
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,
442
442
assert proxy_configuration .is_man_in_the_middle is False
443
443
444
444
445
- @pytest .mark .usefixtures ('patched_httpx_client ' )
445
+ @pytest .mark .usefixtures ('patched_impit_client ' )
446
446
async def test_initialize_prefering_password_from_env_over_calling_api (
447
447
monkeypatch : pytest .MonkeyPatch ,
448
448
httpserver : HTTPServer ,
@@ -471,7 +471,7 @@ async def test_initialize_prefering_password_from_env_over_calling_api(
471
471
assert len (patched_apify_client .calls ['user' ]['get' ]) == 0 # type: ignore[attr-defined]
472
472
473
473
474
- @pytest .mark .usefixtures ('patched_httpx_client ' )
474
+ @pytest .mark .usefixtures ('patched_impit_client ' )
475
475
@pytest .mark .skip (reason = 'There are issues with log propagation to caplog, see issue #462.' )
476
476
async def test_initialize_with_manual_password_different_than_user_one (
477
477
monkeypatch : pytest .MonkeyPatch ,
@@ -506,7 +506,7 @@ async def test_initialize_with_manual_password_different_than_user_one(
506
506
assert 'The Apify Proxy password you provided belongs to a different user' in caplog .records [0 ].message
507
507
508
508
509
- @pytest .mark .usefixtures ('patched_httpx_client ' )
509
+ @pytest .mark .usefixtures ('patched_impit_client ' )
510
510
async def test_initialize_when_not_connected (monkeypatch : pytest .MonkeyPatch , httpserver : HTTPServer ) -> None :
511
511
dummy_connection_error = 'DUMMY_CONNECTION_ERROR'
512
512
dummy_proxy_status_url = str (httpserver .url_for ('/' )).removesuffix ('/' )
0 commit comments