Skip to content

Commit 3e410a9

Browse files
committed
resolve log-related issues
1 parent 5810f97 commit 3e410a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/unit/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ def httpserver(make_httpserver: HTTPServer) -> Iterable[HTTPServer]:
2828
@pytest.fixture
2929
def 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()

tests/unit/test_logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)