Skip to main content

About

testing.rabbitmq automatically setups a rabbitmq instance, and destroys it after testing.

https://travis-ci.org/tristan/testing.rabbitmq.svg?branch=master https://coveralls.io/repos/tristan/testing.rabbitmq/badge.png?branch=master https://codeclimate.com/github/tristan/testing.rabbitmq/badges/gpa.svg
Documentation

https://github.com/tristan/testing.rabbitmq

Issues

https://github.com/tristan/testing.rabbitmq/issues

Download

https://pypi.python.org/pypi/testing.rabbitmq

Install

Use pip:

$ pip install testing.rabbitmq

And testing.rabbitmq requires rabbitmq-server and rabbitmqctl at /usr/lib/rabbitmq/bin. If rabbitmq is installed at a different path set rabbitmq_script_dir when creating the RabbitMQServer instance.

Usage

Create RabbitMQServer instance using testing.rabbitmq.RabbitMQServer:

import testing.rabbitmq
import pika

# Lanuch new RabbitMQ server
with testing.rabbitmq.RabbitMQServer() as rmq:
    connection = pika.BlockingConnection(
        pika.ConnectionParameters(**rmq.dsn()))
    channel = connection.channel()
    channel.basic_publish(exchange='',
                          routing_key='test',
                          body=b'Test message.')
    connection.close()

# Rabbitmq server is terminated here

Requirements

  • Python 2.7, 3.4, 3.5, 3.6

License

Apache License 2.0

History

1.0.0 (2019-08-19)

  • First release

1.0.1 (2020-01-31)

  • Update runner script header to fix issues running on macOS

1.0.2 (2021-06-15)

  • Fix log string formatting in _terminate_process()

Metadata

Release files for testing.rabbitmq 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testing.rabbitmq 1.0.2
File Size Uploaded Provenance
testing.rabbitmq-1.0.2.tar.gz 8.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for testing.rabbitmq 1.0.2
File Interpreter ABI Platform
testing.rabbitmq-1.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 17.9 kB

Release files / testing.rabbitmq-1.0.2.tar.gz

Download URL testing.rabbitmq-1.0.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2868d0299f65d56354be330caf32ad6596b010efa54d59f51e120b35d177bda1
BLAKE2b-256 checksum
How to use checksums
a184fe539dd5ccca647b7ca862fbada27a340819425789166f4d2ca8ba6a13b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Release files / testing.rabbitmq-1.0.2-py2.py3-none-any.whl

Download URL testing.rabbitmq-1.0.2-py2.py3-none-any.whl
Size 9.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a37e8beb3136d2453bc39dcc1a8d40e998336b840d3383cb73ce8864d4925dc7
BLAKE2b-256 checksum
How to use checksums
071f4f75237a1733d9ecb9874a50d8b296731b8572540d5aac394ef4bd78cdd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

Security for testing.rabbitmq 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page