forked from NREL/GEOPHIRES-X
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pytest.ini
32 lines (29 loc) · 1.04 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
[pytest]
# If a pytest section is found in one of the possible config files
# (pytest.ini, tox.ini or setup.cfg), then pytest will not look for any others,
# so if you add a pytest config section elsewhere,
# you will need to delete this section from setup.cfg.
norecursedirs =
migrations
python_files =
test_*.py
*_test.py
tests.py
addopts =
-ra
--strict-markers
--doctest-modules
--doctest-glob=\*.rst
--tb=short
testpaths =
tests
# Idea from: https://til.simonwillison.net/pytest/treat-warnings-as-errors
filterwarnings =
error
# For pandas Pyarrow deprecation warning - see https://github.com/pandas-dev/pandas/issues/54466
# TODO scope to Pyarrow warning only if possible, see https://stackoverflow.com/questions/40710094/how-to-suppress-py-test-internal-deprecation-warnings
ignore::DeprecationWarning
# You can add exclusions, some examples:
# ignore:'geophires_x' defines default_app_config:PendingDeprecationWarning::
# ignore:The {{% if:::
# ignore:Coverage disabled via --no-cov switch!