File size: 406 Bytes
88d2f2a
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Top-level conftest that puts the project root on sys.path.

This avoids a `pip install -e .` requirement for the bare-bones venv
that ships with the repo. Pytest auto-discovers this file when invoked
from the project root.
"""
from __future__ import annotations

import sys
from pathlib import Path

ROOT = Path(__file__).parent.resolve()
if str(ROOT) not in sys.path:
    sys.path.insert(0, str(ROOT))