Skip to content

Commit 33c31a9

Browse files
committed
Move pytest config into pyproject.toml.
1 parent 12b3ca3 commit 33c31a9

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

pyproject.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,16 @@ omit = [
2020
[tool.coverage.report]
2121
exclude_also = [
2222
"if TYPE_CHECKING:",
23-
]
23+
]
24+
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

pytest.ini

Lines changed: 0 additions & 12 deletions
This file was deleted.

requirements-devenv.txt

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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)