You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

6 lines
244 B

import pytest
pytest.importorskip("PySide6")
np=pytest.importorskip("numpy")
from src.gui.video_widget import bgr_to_rgb
def test_bgr_to_rgb()->None:
value=np.array([[[1,2,3]]],dtype=np.uint8);assert bgr_to_rgb(value).tolist()==[[[3,2,1]]]