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 1
1
# The test fixture will put the Apify SDK wheel path on the next line
2
2
APIFY_SDK_WHEEL_PLACEHOLDER
3
3
uvicorn [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
150
150
port : int = ws_server .sockets [0 ].getsockname ()[1 ] # type: ignore[index]
151
151
monkeypatch .setenv (ActorEnvVars .EVENTS_WEBSOCKET_URL , f'ws://localhost:{ port } ' )
152
152
153
+ # Make sure there is a charging manager that can be mocked
154
+ Actor ._get_charging_manager_implementation ()
155
+
153
156
mock_run_client = Mock ()
154
157
mock_run_client .run .return_value .get = AsyncMock (
155
158
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(
539
539
540
540
await proxy_configuration .initialize ()
541
541
542
- assert len (caplog .records ) == 1
542
+ assert len (caplog .records ) == 2
543
543
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
545
545
546
546
547
547
async def test_initialize_with_non_apify_proxy (
You can’t perform that action at this time.
0 commit comments