File: conftest.py

package info (click to toggle)
python-periodictable 1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,884 kB
  • sloc: python: 8,509; makefile: 97; sh: 91; javascript: 7
file content (9 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import sys

# Doctest needs doc/sphinx on the path so that discoverer package can be found.
# Using the pytest-pythonpath package, this would be:
#    setup.py: test_require=[..., 'pytest-pythonpath']
#    pytest.ini:  python_paths = "doc/sphinx"
# Not doing so because it introduces another dependency.
def pytest_configure(config):
    sys.path.insert(0, "doc/sphinx")