File: conftest.py

package info (click to toggle)
python-autodocsumm 0.2.14-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 536 kB
  • sloc: python: 985; makefile: 171; sh: 21
file content (23 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os.path as osp
import pytest
import sphinx
import sys
from packaging.version import Version

if Version(sphinx.__version__) < Version("8.0.0"):
    from sphinx.testing.path import path
else:
    from pathlib import Path as path

pytest_plugins = 'sphinx.testing.fixtures'


sphinx_supp = osp.abspath(osp.join(osp.dirname(__file__), "tests"))


@pytest.fixture(scope='session')
def rootdir():
    return path(sphinx_supp)


sys.path.insert(0, osp.join(sphinx_supp, "test-root"))