Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dev = [
"mysqlclient==2.2.7",
"pre-commit==4.4.0",
"pymysql==1.1.2",
"pytest==8.4.2",
"pytest==9.0.1",
"pytest-alembic==0.12.1",
"python-dotenv==1.2.1",
"ruff==0.14.4",
Expand Down
16 changes: 7 additions & 9 deletions pytest.ini → pytest.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
; SPDX-FileCopyrightText: Copyright (C) 2024 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <john.kildea@mcgill.ca>
;
; SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: Copyright (C) 2024 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <john.kildea@mcgill.ca>
# SPDX-License-Identifier: AGPL-3.0-or-later

# see: https://docs.pytest.org/en/stable/reference/reference.html#ini-options-ref
[pytest]
console_output_style = times
python_files = tests.py test_*.py
console_output_style = "times"
# treat warnings as errors to fail tests early
# modify here to exclude certain warnings if necessary
# see: https://til.simonwillison.net/pytest/treat-warnings-as-errors
filterwarnings =
error
filterwarnings = [
"error",
# ignore foreign key cycles
# 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.
# 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.
ignore:Cannot correctly sort tables.*unresolvable cycles.*dictionary.*language:sqlalchemy.exc.SAWarning
"ignore:Cannot correctly sort tables.*unresolvable cycles.*dictionary.*language:sqlalchemy.exc.SAWarning",
]
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.