tests: use pytest 9+ and modern config (#2777)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
+6
-5
@@ -90,7 +90,7 @@ test = [
|
|||||||
"pytest-timeout",
|
"pytest-timeout",
|
||||||
"pytest-xdist",
|
"pytest-xdist",
|
||||||
"pytest-rerunfailures!=16.0",
|
"pytest-rerunfailures!=16.0",
|
||||||
"pytest>=6",
|
"pytest>=9",
|
||||||
"setuptools",
|
"setuptools",
|
||||||
"tomli_w",
|
"tomli_w",
|
||||||
"validate-pyproject",
|
"validate-pyproject",
|
||||||
@@ -103,11 +103,11 @@ dev = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest]
|
||||||
minversion = "6.0"
|
minversion = "9.0"
|
||||||
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config", "--xdoctest", "--ignore-glob=*venv*"]
|
addopts = ["-ra", "--showlocals", "--xdoctest", "--ignore-glob=*venv*"]
|
||||||
|
strict = true
|
||||||
junit_family = "xunit2"
|
junit_family = "xunit2"
|
||||||
xfail_strict = true
|
|
||||||
filterwarnings = ["error"]
|
filterwarnings = ["error"]
|
||||||
log_level = "INFO"
|
log_level = "INFO"
|
||||||
markers = [
|
markers = [
|
||||||
@@ -116,6 +116,7 @@ markers = [
|
|||||||
"android: tests that run on Android",
|
"android: tests that run on Android",
|
||||||
"pyodide: tests that run on Pyodide",
|
"pyodide: tests that run on Pyodide",
|
||||||
]
|
]
|
||||||
|
required_plugins = ["pytest-rerunfailures"]
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.11"
|
python_version = "3.11"
|
||||||
|
|||||||
Reference in New Issue
Block a user