21 lines
836 B
Python
21 lines
836 B
Python
"""Root pytest config (plan follow-up todo 19: CI test-path split).
|
|
|
|
tests/test_tracker.py imports numpy/cv2/mediapipe, which live only in
|
|
tracker/.venv, not the root .venv used for the C-contract mirror tests
|
|
(test_contract_py.py, test_record_replay.py, test_smoke.py). Running bare
|
|
pytest from the repo root with the root venv must not collection-error on
|
|
that import, so skip collecting test_tracker.py whenever the tracker's CV
|
|
stack isn't importable. Under tracker/.venv the imports succeed and the full
|
|
test set (including test_tracker.py) is collected and run normally -- see
|
|
.github/workflows/ci.yml for the two separate CI steps.
|
|
"""
|
|
|
|
try:
|
|
import cv2 # noqa: F401
|
|
import mediapipe # noqa: F401
|
|
import numpy # noqa: F401
|
|
|
|
collect_ignore = []
|
|
except ImportError:
|
|
collect_ignore = ["tests/test_tracker.py"]
|