Skip to content

Commit 568597c

Browse files
authored
Upgrade pytest configuration (#1189)
Use the new proper TOML support [added in pytest 9](https://docs.pytest.org/en/stable/changelog.html#pytest-9-0-0-2025-11-05).
1 parent dd5a6e6 commit 568597c

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test = [
5959
"mariadb-dyncol",
6060
"mysqlclient>=1.4.3",
6161
"parameterized",
62-
"pytest",
62+
"pytest>=9",
6363
"pytest-django",
6464
"pytest-flake8-path",
6565
"pytest-randomly",
@@ -147,13 +147,9 @@ warn_unused_ignores = true
147147
overrides = [ { module = "tests.*", allow_untyped_defs = true } ]
148148

149149
[tool.pytest]
150-
ini_options.addopts = """\
151-
--strict-config
152-
--strict-markers
153-
--ds=tests.settings
154-
"""
155-
ini_options.django_find_project = false
156-
ini_options.xfail_strict = true
150+
strict = true
151+
django_find_project = false
152+
DJANGO_SETTINGS_MODULE = "tests.settings"
157153

158154
[tool.coverage]
159155
run.branch = true

uv.lock

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

0 commit comments

Comments
 (0)