Skip to content

Commit

Permalink
2121
Browse files Browse the repository at this point in the history
  • Loading branch information
doublehomixide authored Dec 28, 2024
1 parent 81b11c2 commit f260676
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/brokers/rabbit/test_test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ def test(pattern: str, current: str, result: bool) -> None:


@pytest.mark.parametrize(("queue", "exchange", "routing_key", "headers", "expected_result"),
(pytest.param(reqular_queue, exch_direct, "test-q-1", {}, True,
(pytest.param(reqular_queue, exch_direct, "test-reqular-queue", {}, True,
id="direct match"),
pytest.param(reqular_queue, exch_direct, "test-q-1111", {}, False,
pytest.param(reqular_queue, exch_direct, "test-reqular-queue-11111111", {}, False,
id="direct no match"),
pytest.param(reqular_queue, exch_fanout, "any-key", {}, True,
id="fanout match"),
Expand All @@ -373,3 +373,4 @@ def test_in_memory_routing(queue: str, exchange: RabbitExchange, routing_key: st
expected_result: bool):
subscriber = broker.subscriber(queue, exchange)
assert _is_handler_matches(subscriber, routing_key, headers, exchange) == expected_result

0 comments on commit f260676

Please sign in to comment.