pytest-rabbitmq
RabbitMQ process and client fixtures for pytest
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- RabbitMQ must be installed on the test machine; the plugin expects rabbitmq-server and rabbitmqctl binaries at /usr/lib/rabbitmq/bin/ (Linux default) or configured paths.
- Low install friction with four runtime dependencies (pytest, port-for, mirakuru, pika).
- Actively maintained; last commit 2026-08-10 with 51 repository stars.
License · maintenance · safety
copyleft license (copyleft) — Licensed under LGPLv3+, a copyleft license. You may use and modify the package freely, but any derivative works must also be licensed under compatible terms. Suitable for most open-source and commercial projects, though closed-source modifications require careful compliance review.
last release 2026-03-22 (145 days) · last repo commit 2026-08-10 · 51 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 108,779 downloads/mo, #12,540 on PyPI
Alternatives
Verify before relying
pip install pytest-rabbitmq
# In your test file:
def test_with_rabbitmq(rabbitmq):
assert rabbitmq is not None- Whether the plugin automatically discovers RabbitMQ on non-Linux systems or requires explicit path configuration.
- Performance characteristics when running multiple test sessions with different RabbitMQ instances.
- Compatibility with containerized RabbitMQ or remote broker instances beyond localhost.
What it is and 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.
The plugin handles the complexity of spawning and managing a RabbitMQ process, discovering available ports, and configuring broker paths—all 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
pytest-rabbitmq on PyPI
Before you install
Low install friction with four runtime dependencies (pytest, port-for, mirakuru, pika). Actively maintained; last commit 2026-08-10 with 51 repository stars. Supports current Python versions (3.10–3.14).
RabbitMQ must be installed on the test machine; the plugin expects rabbitmq-server and rabbitmqctl binaries at /usr/lib/rabbitmq/bin/ (Linux default) or configured paths.
License in practice
Licensed under LGPLv3+, a copyleft license. You may use and modify the package freely, but any derivative works must also be licensed under compatible terms. Suitable for most open-source and commercial projects, though closed-source modifications require careful compliance review.
Quickstart
pip install pytest-rabbitmq
# In your test file:
def test_with_rabbitmq(rabbitmq):
assert rabbitmq is not None
Verify before relying
- Whether the plugin automatically discovers RabbitMQ on non-Linux systems or requires explicit path configuration.
- Performance characteristics when running multiple test sessions with different RabbitMQ instances.
- Compatibility with containerized RabbitMQ or remote broker instances beyond localhost.
Package facts
| License | copyleft license copyleft |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagespytestport-formirakurupika |
| Maintenance | Actively maintained 145 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 108,779 / month, #12,540 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)Natural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing |
Evidence: pytest_rabbitmq-4.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest rabbitmq fixtures”
- pytest-rabbitmqA pytest plugin that provides fixtures to start and manage a local…
- pytest-unused-fixturesA pytest plugin that identifies and reports fixtures defined in your…
- pytest-factoryboyIntegrates factory_boy with pytest to register factories as fixtures,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pytest-grpc · pytest-redis · pytest-spark · pytest-postgresql · pytest-mysql · pytest-localftpserver · pytest-shutil · pytest-qt · pytest-deadfixtures · pytest-homeassistant-custom-component