[pytest]
doctest_optionflags=ELLIPSIS NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL

# --doctest-continue-on-failure allows the test to always
# get to the teardown, if it exists
addopts = --doctest-glob *.doctest --doctest-continue-on-failure --color=yes --code-highlight=yes

# Other options for creating valid teardowns for doctests:
# 1. Turn doctests into unittest tests
#    - https://docs.python.org/3/library/doctest.html#unittest-api
# 2. Use sphinx doctests
#    - https://www.sphinx-doc.org/en/master/usage/extensions/doctest.html
# 3. Convert the tests that require setup/teardown into pytest tests with fixtures
