File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
integration/actor_source_base Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11# The test fixture will put the Apify SDK wheel path on the next line
22APIFY_SDK_WHEEL_PLACEHOLDER
33uvicorn [standard ]
4- crawlee [parsel ] @ git+https://github.com/apify/crawlee-python.git@storage-clients-and-configurations
4+ crawlee [parsel ] @ git+https://github.com/apify/crawlee-python.git@storage-clients-and-configurations-2
Original file line number Diff line number Diff line change @@ -150,6 +150,9 @@ async def handler(websocket: websockets.asyncio.server.ServerConnection) -> None
150150 port : int = ws_server .sockets [0 ].getsockname ()[1 ] # type: ignore[index]
151151 monkeypatch .setenv (ActorEnvVars .EVENTS_WEBSOCKET_URL , f'ws://localhost:{ port } ' )
152152
153+ # Make sure there is a charging manager that can be mocked
154+ Actor ._get_charging_manager_implementation ()
155+
153156 mock_run_client = Mock ()
154157 mock_run_client .run .return_value .get = AsyncMock (
155158 side_effect = lambda : {
Original file line number Diff line number Diff line change @@ -539,9 +539,9 @@ async def test_initialize_when_status_page_unavailable(
539539
540540 await proxy_configuration .initialize ()
541541
542- assert len (caplog .records ) == 1
542+ assert len (caplog .records ) == 2
543543 assert caplog .records [0 ].levelname == 'WARNING'
544- assert 'Apify Proxy access check timed out' in caplog .records [0 ].message
544+ assert 'Apify Proxy access check timed out' in caplog .records [1 ].message
545545
546546
547547async def test_initialize_with_non_apify_proxy (
You can’t perform that action at this time.
0 commit comments