document_redaction / test /conftest.py
seanpedrickcase's picture
Sync: Fixes to image annotation component for compatibility with gradio 6.26.0
2677bc3
Raw
History Blame Contribute Delete
321 Bytes
"""Pytest configuration and shared test path setup."""
from __future__ import annotations
import sys
from pathlib import Path
# Allow ``from pi_test_support import ...`` in test modules during collection.
_test_dir = str(Path(__file__).resolve().parent)
if _test_dir not in sys.path:
sys.path.insert(0, _test_dir)