"""Pytest configuration. Ensures the project root is on ``sys.path`` so tests can import ``server.*`` without installing the project as a package. """ import os import sys _ROOT = os.path.dirname(os.path.abspath(__file__)) if _ROOT not in sys.path: sys.path.insert(0, _ROOT)