When I call broker.connect() inside a TestRabbitBroker context, it returns None:
@pytest.mark.asyncio
async def test_example():
async with TestRabbitBroker(broker):
conn = await broker.connect() # Returns None
I need the connection to check queue message counts and perform direct AMQP operations in tests.
Is this expected? If so, what's the recommended way to access the connection in tests?
When I call broker.connect() inside a TestRabbitBroker context, it returns None:
I need the connection to check queue message counts and perform direct AMQP operations in tests.
Is this expected? If so, what's the recommended way to access the connection in tests?