Commit 3c2b4a6
authored
Mock cv2.imencode to return numpy array (#118)
Update the test fixture in tests/om1_vlm/video/test_video_stream.py so that the mocked cv2.imencode returns a numpy.uint8 array (np.frombuffer(..., dtype=np.uint8)) instead of raw bytes. This makes the mock match the real cv2.imencode return type (success flag, ndarray) and avoids type mismatches in the tests.1 parent a637aea commit 3c2b4a6
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
0 commit comments