From 1eba242eb6cf0a2f742a7c62d211bb72eaea1d1d Mon Sep 17 00:00:00 2001 From: DanielePalaia Date: Thu, 5 Dec 2024 10:08:27 +0100 Subject: [PATCH] adding basic test --- .github/workflows/build-test.yaml | 2 +- tests/__init__.py | 0 tests/test_connection.py | 5 +++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/__init__.py create mode 100644 tests/test_connection.py diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 692711f..d13d87a 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -23,7 +23,7 @@ jobs: env: RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbitmq_stream advertised_host localhost" ports: - - 5552:5552 + - 5672:5672 - 15672:15672 steps: - uses: actions/checkout@v2 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_connection.py b/tests/test_connection.py new file mode 100644 index 0000000..b1716ca --- /dev/null +++ b/tests/test_connection.py @@ -0,0 +1,5 @@ +from proton.utils import BlockingConnection + + +def test_connection() -> None: + BlockingConnection("amqp://guest:guest@localhost:5672/")