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...
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Serviceware/testcontainer-python-rabbitmq
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published