-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.toml
More file actions
25 lines (24 loc) · 910 Bytes
/
pytest.toml
File metadata and controls
25 lines (24 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# SPDX-FileCopyrightText: Copyright (C) 2025 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#configuration-options
[pytest]
console_output_style = "times"
addopts = [
"--strict-markers",
"--ds=config.settings.test",
"-m not slow",
# https://pytest-django.readthedocs.io/en/latest/usage.html#fail-on-template-vars-fail-for-invalid-variables-in-templates
"--fail-on-template-vars",
"--disable-socket",
# Speed up tests with MySQL due to slowness in creating test DBs
"--reuse-db",
]
# see: https://docs.pytest.org/en/stable/how-to/mark.html
markers = [
"slow: marks tests as slow"
]
# https://docs.pytest.org/en/stable/how-to/capture-warnings.html#warnings
filterwarnings = [
"error",
]