Skip to content

Commit 22cffb7

Browse files
chore(deps): update dependency pytest to v9 (#689)
Migrate pytest config to pytest.toml --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Matthias Schoettle <git@mattsch.com>
1 parent a8cc416 commit 22cffb7

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dev = [
2323
"mysqlclient==2.2.7",
2424
"pre-commit==4.4.0",
2525
"pymysql==1.1.2",
26-
"pytest==8.4.2",
26+
"pytest==9.0.1",
2727
"pytest-alembic==0.12.1",
2828
"python-dotenv==1.2.1",
2929
"ruff==0.14.4",
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
; SPDX-FileCopyrightText: Copyright (C) 2024 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <john.kildea@mcgill.ca>
2-
;
3-
; SPDX-License-Identifier: AGPL-3.0-or-later
1+
# SPDX-FileCopyrightText: Copyright (C) 2024 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <john.kildea@mcgill.ca>
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
43

54
# see: https://docs.pytest.org/en/stable/reference/reference.html#ini-options-ref
6-
[pytest]
7-
console_output_style = times
8-
python_files = tests.py test_*.py
5+
console_output_style = "times"
96
# treat warnings as errors to fail tests early
107
# modify here to exclude certain warnings if necessary
118
# see: https://til.simonwillison.net/pytest/treat-warnings-as-errors
12-
filterwarnings =
13-
error
9+
filterwarnings = [
10+
"error",
1411
# ignore foreign key cycles
1512
# sqlalchemy.exc.SAWarning: Cannot correctly sort tables; there are unresolvable cycles between tables "QuestionnaireDB.dictionary, QuestionnaireDB.language", which is usually caused by mutually dependent foreign key constraints. Foreign key constraints involving these tables will not be considered; this warning may raise an error in a future release.
1613
# sqlalchemy.exc.SAWarning: Cannot correctly sort tables; there are unresolvable cycles between tables "dictionary, language", which is usually caused by mutually dependent foreign key constraints. Foreign key constraints involving these tables will not be considered; this warning may raise an error in a future release.
17-
ignore:Cannot correctly sort tables.*unresolvable cycles.*dictionary.*language:sqlalchemy.exc.SAWarning
14+
"ignore:Cannot correctly sort tables.*unresolvable cycles.*dictionary.*language:sqlalchemy.exc.SAWarning",
15+
]

uv.lock

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

0 commit comments

Comments
 (0)