Skip to content

Commit

Permalink
ensure all_channels prints warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed May 11, 2023
1 parent b31c779 commit ab283b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_amqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,8 @@ async def test_set_qos(self, channel: aio_pika.Channel):
async def test_set_qos_deprecated_all_channels(
self, channel: aio_pika.Channel,
):
await channel.set_qos(prefetch_count=1, all_channels=True)
with pytest.deprecated_call():
await channel.set_qos(prefetch_count=1, all_channels=True)

async def test_exchange_delete(
self, channel: aio_pika.Channel, declare_exchange,
Expand Down

0 comments on commit ab283b6

Please sign in to comment.