File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ def httpserver(make_httpserver: HTTPServer) -> Iterable[HTTPServer]:
2828@pytest .fixture
2929def patch_basic_url (httpserver : HTTPServer , monkeypatch : pytest .MonkeyPatch ) -> Iterator [None ]:
3030 server_url = httpserver .url_for ('/' ).removesuffix ('/' )
31- monkeypatch .setattr ('apify_client.client .DEFAULT_API_URL' , server_url )
31+ monkeypatch .setattr ('apify_client._client .DEFAULT_API_URL' , server_url )
3232 yield
3333 monkeypatch .undo ()
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ async def test_redirected_logs_async(
192192
193193 run_client = ApifyClientAsync (token = 'mocked_token' , api_url = api_url ).run (run_id = _MOCKED_RUN_ID )
194194
195- with patch ('apify_client.clients.resource_clients .log.datetime' ) as mocked_datetime :
195+ with patch ('apify_client._resource_clients .log.datetime' ) as mocked_datetime :
196196 # Mock `now()` so that it has timestamp bigger than the first 3 logs
197197 mocked_datetime .now .return_value = datetime .fromisoformat ('2025-05-13T07:24:14.132+00:00' )
198198 streamed_log = await run_client .get_streamed_log (from_start = log_from_start )
@@ -232,7 +232,7 @@ def test_redirected_logs_sync(
232232
233233 run_client = ApifyClient (token = 'mocked_token' , api_url = api_url ).run (run_id = _MOCKED_RUN_ID )
234234
235- with patch ('apify_client.clients.resource_clients .log.datetime' ) as mocked_datetime :
235+ with patch ('apify_client._resource_clients .log.datetime' ) as mocked_datetime :
236236 # Mock `now()` so that it has timestamp bigger than the first 3 logs
237237 mocked_datetime .now .return_value = datetime .fromisoformat ('2025-05-13T07:24:14.132+00:00' )
238238 streamed_log = run_client .get_streamed_log (from_start = log_from_start )
You can’t perform that action at this time.
0 commit comments