import pytest from pathlib import Path pytest_plugins = "sphinx.testing.fixtures" # Exclude 'roots' dirs for pytest test collector collect_ignore = ["roots"] @pytest.fixture(scope="session") def rootdir(): return Path(__file__).parent / "roots"