-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pytest.ini
55 lines (51 loc) · 2.23 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[pytest]
addopts =
# Tests summary report
# ref: https://docs.pytest.org/en/8.3.x/how-to/output.html#producing-a-detailed-summary-report
-ra
# (V)Verbose
-vv
# Show local variables in tracebacks
--showlocals
# Raise error on unknown markers
--strict-markers
# Import mode
# ref: https://docs.pytest.org/en/8.3.x/explanation/pythonpath.html#import-modes
--import-mode=importlib
# Minimal duration in seconds for inclusion in slowest list
# ref: https://docs.pytest.org/en/8.3.x/how-to/usage.html#profiling-test-execution-duration
--durations-min=0.5
# Fail if a test tries to open a network connection
# ref: https://github.com/miketheman/pytest-socket
--disable-socket
# Coverage reports
# ref: https://github.com/pytest-dev/pytest-cov
--cov=ridgeplot
--cov=tests
--no-cov-on-fail
--cov-report=term-missing
# Default list of directories that pytest will search for tests in.
# This should be overridden in tox.ini to run specific test suites.
# https://docs.pytest.org/en/8.3.x/reference/reference.html#confval-testpaths
testpaths = tests
# List of directories that should be added to the python search path
# https://docs.pytest.org/en/8.3.x/reference/reference.html#confval-pythonpath
pythonpath = cicd_utils
# Tests marked with @pytest.mark.xfail that actually
# succeed will by default fail the test suite.
# https://docs.pytest.org/en/8.3.x/reference/reference.html#confval-xfail_strict
xfail_strict = true
# Warning filters pattern: action:message:category:module:line
# ref: https://docs.pytest.org/en/8.3.x/how-to/capture-warnings.html
# ref: https://docs.python.org/3/library/warnings.html#describing-warning-filters
# ref: https://docs.python.org/3/using/cmdline.html#cmdoption-W
filterwarnings =
# Default to raising an error on any warning
error
# Ignore pytest-cov's warning about `--no-cov` being present
# when other `--cov*` options are passed to pytest
ignore::pytest_cov.plugin.CovDisabledWarning
# Ignore pandas' is_categorical_dtype DeprecationWarning
ignore:is_categorical_dtype.*:DeprecationWarning
# Ignore pandas' missing Pyarrow dependency warning
ignore:\nPyarrow will become a required dependency.*:DeprecationWarning