Skip to content

Commit aefa34d

Browse files
authored
ci: Move pytest config into pyproject.toml (#4184)
Consolidate configuration into `pyproject.toml`.
1 parent ce9d784 commit aefa34d

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

pyproject.toml

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ exclude_also = [
2222
"if TYPE_CHECKING:",
2323
]
2424

25+
[tool.pytest.ini_options]
26+
addopts = "-vvv -rfEs -s --durations=5 --cov=./sentry_sdk --cov-branch --cov-report= --tb=short --junitxml=.junitxml"
27+
asyncio_mode = "strict"
28+
asyncio_default_fixture_loop_scope = "function"
29+
markers = [
30+
"tests_internal_exceptions: Handle internal exceptions just as the SDK does, to test it. (Otherwise internal exceptions are recorded and reraised.)",
31+
]
32+
33+
[tool.pytest-watch]
34+
verbose = true
35+
nobeep = true
36+
2537
[tool.mypy]
2638
allow_redefinition = true
2739
check_untyped_defs = true

pytest.ini

-12
This file was deleted.

requirements-devenv.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-r requirements-linting.txt
22
-r requirements-testing.txt
33
mockupdb # required by `pymongo` tests that are enabled by `pymongo` from linter requirements
4-
pytest
4+
pytest>=6.0.0
5+
tomli;python_version<"3.11" # Only needed for pytest on Python < 3.11
56
pytest-asyncio

requirements-testing.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pip
2-
pytest
2+
pytest>=6.0.0
3+
tomli;python_version<"3.11" # Only needed for pytest on Python < 3.11
34
pytest-cov
45
pytest-forked
56
pytest-localserver

0 commit comments

Comments
 (0)