Skip to content

Commit 4fc7c75

Browse files
github-renovate-self-hostedrenovate-botarththebird
authored
chore(deps): update dependency ruff to v0.5.0 (#152)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com> Co-authored-by: Arthur Loiselle <arthur.loiselle@dialogue.co>
1 parent ff80bf7 commit 4fc7c75

3 files changed

Lines changed: 25 additions & 22 deletions

File tree

poetry.lock

Lines changed: 20 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ psycopg2 = { version = "2.9.9", extras = ["binary"] }
6262
pytest = "8.2.2"
6363
pytest-asyncio = "0.23.7"
6464
pytest-cov = "5.0.0"
65-
ruff = "0.4.10"
65+
ruff = "0.5.0"
6666
tox = "4.15.1"
6767

6868
[tool.poetry.extras]

tests/test_open_session.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ def test_open_session_re_raise_exception_when_commit_fails(
115115
)
116116
session.flush()
117117

118-
with raises(Exception) as raise_info, open_session() as session:
119-
session.add(test_table_cls(id=existing_record_id, value="bobby already exists"))
118+
with raises(Exception) as raise_info, open_session() as new_session:
119+
new_session.add(
120+
test_table_cls(id=existing_record_id, value="bobby already exists")
121+
)
120122

121123
assert isinstance(raise_info.value, IntegrityError)
122124

0 commit comments

Comments
 (0)