[kimi] Fix: stub cv2 in tests to prevent timeout (#1336) #1356

Merged
Timmy merged 1 commits from kimi/issue-1336 into main 2026-03-24 02:59:53 +00:00

1 Commits

Author SHA1 Message Date
kimi
1356172642 fix: stub cv2 in tests to prevent timeout under pytest-xdist
Some checks failed
Tests / lint (pull_request) Failing after 31s
Tests / test (pull_request) Has been skipped
Add 'cv2' to the list of stubbed modules in conftest.py to prevent
OpenCV import from hanging under pytest-xdist parallel workers.

The perception_cache.py module imports cv2 at the module level, which
can cause deadlocks/hangs when running tests in parallel with pytest-xdist.
By stubbing cv2 in conftest.py, tests get a MagicMock instead of the
real cv2, avoiding the import hang.

Fixes #1336
2026-03-23 22:57:12 -04:00