17 lines
393 B
Python
17 lines
393 B
Python
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
pytest_plugins = ['byteb4rb1e.sphinxcontrib.testing.pytest.fixtures']
|
|
|
|
_TESTS_ROOT = Path(__file__).resolve().parent
|
|
|
|
def pytest_configure(config):
|
|
# register an additional marker
|
|
config.addinivalue_line(
|
|
"markers", "pytest: test pytest integration"
|
|
)
|
|
|
|
@pytest.fixture(scope='session')
|
|
def rootdir() -> Path:
|
|
return _TESTS_ROOT
|