pytest-rabbitmq provides pytest fixtures for spinning up a RabbitMQ process and client connections. Version 4.0.0 requires Python >=3.10 and uses async fixtures by default. Release cadence is irregular, driven by maintenance needs.
pip install pytest-rabbitmqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic test using rabbitmq fixture to publish and consume a message. Ensure pytest-rabbitmq is in your test dependencies.
If you need sync fixtures, install pika and use '--rabbitmq-client=pika' or use the 'rabbitmq_sync' fixture.
Change 'from pytest_rabbitmq.factories import rabbitmq' to 'from pytest_rabbitmq import rabbitmq'.
Set the environment variable RABBITMQ_SERVER_PATH to a pre-installed RabbitMQ server binary to avoid download.