{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"A pytest plugin that provides fixtures to start and manage a local RabbitMQ broker instance for tests, plus a client fixture for interacting with it.","skillfed_tags":["pytest-plugin","message-queue-testing","integration-testing"],"use_cases":["Write integration tests for message queue consumers and producers without mocking the broker.","Test RabbitMQ-dependent microservices in isolation with a fresh broker state per test.","Validate queue and exchange configurations in your application before deployment.","Run CI/CD pipelines that need a temporary RabbitMQ instance without external service dependencies.","Develop and test AMQP protocol implementations with a real broker available during test execution."],"what_it_does":"pytest-rabbitmq is a pytest plugin that automates the setup and teardown of a local RabbitMQ broker for test suites. It provides two main fixtures: rabbitmq_proc, which starts a RabbitMQ instance at the beginning of a test session and stops it at the end, and rabbitmq, a client fixture that connects to the broker and automatically cleans up queues and exchanges after each test to maintain isolation.\n\nThe plugin handles the complexity of spawning and managing a RabbitMQ process, discovering available ports, and configuring broker paths\u2014all configurable via fixture arguments, command-line options, or pytest.ini settings. It depends on pytest, pika (the RabbitMQ client library), mirakuru (for process management), and port-for (for port discovery). Requires Python 3.10 or later and an installed RabbitMQ server on the test machine.","worth_installing":"Yes. The plugin is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real testing need for RabbitMQ-dependent code. The LGPLv3+ license is permissive for most use cases. The main blocker is the requirement to have RabbitMQ binaries available on the test machine; if your CI environment already provides RabbitMQ or you can install it easily, this is a straightforward win for test reliability."},"id":"pytest-rabbitmq","links":{"html":"https://skillfed.io/packages/pytest-rabbitmq","md":"https://skillfed.io/packages/pytest-rabbitmq.md","pypi":"https://pypi.org/project/pytest-rabbitmq/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-22","license_spdx":null,"license_treatment":"copyleft","name":"pytest-rabbitmq","python_support":"supports_current","summary":"RabbitMQ process and client fixtures for pytest"},"popularity":{"monthly_downloads":108779,"position":12540,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.0.0"}
