forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pytest.ini
29 lines (25 loc) · 1.67 KB
/
pytest.ini
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
26
27
28
29
[pytest]
testpaths = tests
# -p no:cacheprovider -> Disable caching. This is needed to make the
# integration tests work which are executed as site user.
# --durations=20: Show the 20 slowest tests
addopts = -p no:cacheprovider -rs --durations=20
markers =
checks: Run all existing test cases for checks.
# See: https://docs.python.org/3/library/warnings.html#the-warnings-filter
filterwarnings =
# Breaking change, only in new major version, see https://github.com/marshmallow-code/apispec/pull/759
ignore:^distutils Version classes are deprecated\. Use packaging.version instead\.$:DeprecationWarning:apispec.utils:0
# Internal copy of distutils in setuptools :-P
ignore:^distutils Version classes are deprecated\. Use packaging.version instead\.$:DeprecationWarning:distutils.version:0
# pysnmp uses the dprecated asyncore module
ignore:^The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio$:DeprecationWarning
# We have a doctest which intentionally checks for a failure
ignore:^Invalid value for tag-group tag_agent. None$:UserWarning:cmk.gui.fields.definitions:0
# The ReportLab package uses deprecated features, see: https://github.com/Distrotech/reportlab/blob/master/src/reportlab/__init__.py
ignore:^the load_module\(\) method is deprecated and slated for removal in Python 3.12; use exec_module\(\) instead$:DeprecationWarning
# Make marshmallow warnings errors, otherwise typos may go unnoticed.
error::marshmallow.warnings.RemovedInMarshmallow4Warning
# When writing a junit.xml, also write the output of a test to the junit
# file in addition to the console.
junit_logging = all