mirror of
https://github.com/d3vyce/taskiq-deduplication.git
synced 2026-08-04 19:14:07 +00:00
⬆ bump ruff from 0.15.17 to 0.16.0 (#89)
* ⬆ bump ruff from 0.15.17 to 0.16.0 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.15.17 to 0.16.0. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.15.17...0.16.0) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.16.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: ruff warnings --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: d3vyce <nicolas.sudres@proton.me>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
import pytest
|
||||
import fakeredis.aioredis
|
||||
import pytest
|
||||
from redis.asyncio import Redis
|
||||
from taskiq import TaskiqMessage, TaskiqResult
|
||||
|
||||
|
||||
@@ -636,9 +636,11 @@ class TestStartupRetry:
|
||||
failed1.ping.side_effect = ConnectionError("fail")
|
||||
failed2.ping.side_effect = ConnectionError("fail")
|
||||
|
||||
with patch("redis.asyncio.Redis.from_url", side_effect=[failed1, failed2]):
|
||||
with pytest.raises(ConnectionError):
|
||||
await mw.startup()
|
||||
with (
|
||||
patch("redis.asyncio.Redis.from_url", side_effect=[failed1, failed2]),
|
||||
pytest.raises(ConnectionError),
|
||||
):
|
||||
await mw.startup()
|
||||
|
||||
failed1.aclose.assert_called_once()
|
||||
failed2.aclose.assert_called_once()
|
||||
|
||||
Reference in New Issue
Block a user