MCPcopy Index your code
hub / github.com/apify/crawlee-python / rq_client

Function rq_client

tests/unit/storage_clients/_sql/test_sql_rq_client.py:37–47  ·  view source on GitHub ↗

A fixture for a SQL request queue client.

(
    configuration: Configuration,
)

Source from the content-addressed store, hash-verified

35
36@pytest.fixture
37async def rq_client(
38 configuration: Configuration,
39) -> AsyncGenerator[SqlRequestQueueClient, None]:
40 """A fixture for a SQL request queue client."""
41 async with SqlStorageClient() as storage_client:
42 client = await storage_client.create_rq_client(
43 name='test-request-queue',
44 configuration=configuration,
45 )
46 yield client
47 await client.drop()
48
49
50# Helper function that allows you to use inspect with an asynchronous engine

Callers

nothing calls this directly

Calls 3

SqlStorageClientClass · 0.90
create_rq_clientMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected