2015-12-21 03:05:20 +00:00
|
|
|
[pytest]
|
2022-10-23 12:38:52 +00:00
|
|
|
# See comment about pytest-doctest below.
|
2022-02-06 17:28:12 +00:00
|
|
|
#testpaths = bidict tests docs
|
|
|
|
testpaths = bidict tests
|
2021-04-18 15:25:03 +00:00
|
|
|
filterwarnings = error
|
2022-02-09 16:56:57 +00:00
|
|
|
doctest_optionflags = ELLIPSIS
|
2018-11-05 20:52:59 +00:00
|
|
|
addopts =
|
|
|
|
--verbose
|
2022-10-23 12:38:52 +00:00
|
|
|
--benchmark-disable
|
2018-11-05 20:52:59 +00:00
|
|
|
--doctest-modules
|
|
|
|
--doctest-glob=tests/*.txt
|
2022-02-09 16:56:57 +00:00
|
|
|
|
2022-02-06 17:28:12 +00:00
|
|
|
# pytest-doctest is missing too many features to use for the doctests in the Sphinx docs
|
|
|
|
# (e.g. still no skipif support: https://github.com/thisch/pytest-sphinx/issues/9),
|
|
|
|
# so we have our own ./run_tests.py that uses Sphinx's own support for running doctests.
|
2022-02-09 16:56:57 +00:00
|
|
|
# Once we can move back to pytest for running the doctests in the Sphinx docs (which would
|
|
|
|
# allow them to contribute to the pytest-cov(erage) report, besides letting us get rid of
|
|
|
|
# run_tests.py), add "docs" back to "testpaths" above, and uncomment out the following two lines:
|
2018-11-05 20:52:59 +00:00
|
|
|
# --doctest-glob=docs/*.rst
|
2022-02-06 17:28:12 +00:00
|
|
|
# --ignore=docs/conf.py
|