Testcontainer for RabbitMQ
Project description
Python Testcontainer RabbitMQ
Usage
import pika
from testcontainer_python_rabbitmq import RabbitMQContainer
def test_rabbitmq():
config = RabbitMQContainer()
with config as container:
connection = pika.BlockingConnection(
pika.ConnectionParameters(
host=container.get_container_host_ip(),
port=container.get_amqp_port(),
credentials=pika.PlainCredentials(username="guest", password="guest"),
)
)
# do something...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for testcontainer-python-rabbitmq-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3a6596eef60f495b96440a49c72d38beb2dfc0100e9061f23d912ee2f3e57d |
|
MD5 | db200e9fa69050d8d97b230e3b6c9ff5 |
|
BLAKE2b-256 | 3112829cb24d69cc881372d94df7a29af420b91f7debc4f4dbcccfbc90066fc4 |
Close
Hashes for testcontainer_python_rabbitmq-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63c472f04b100e55bfebb8bb9ae9bcb82875f26c83281ccae46fe0806005aa7f |
|
MD5 | 615ce7b8952552513e8e64ccd3e5effe |
|
BLAKE2b-256 | c3b2354d318afe0393aa8e6552464eaf001a900d509c5924132896529dee1988 |