Files
DeepTutor/docs/tests/conftest.py
AleFlyX 140bdc1809 style: sort the imports in docs/tests/conftest.py
`ruff check .` reports I001 here since the file was added, but the Lint job
only runs for paths that include tests/**, so the failure stayed invisible
until this branch started touching tests/. Keep the tree lint-clean before
the doc contract tests start depending on it.
2026-11-26 21:35:16 +08:00

13 lines
478 B
Python

"""Make ``doc_facts`` importable and keep the checks dependency-free.
These tests parse the repository rather than importing DeepTutor, so they need
no runtime dependencies — only the standard library and pytest. Running from
``docs/`` keeps them outside ``tests/conftest.py``, whose autouse fixtures build
the application container and would require the full dependency set.
"""
from pathlib import Path
import sys
sys.path.insert(0, str(Path(__file__).resolve().parent))