"""Test QtMultimediaWidgets.""" import pytest from qtpy import PYQT5, PYSIDE2 from qtpy.tests.utils import using_conda @pytest.mark.skipif( not (PYQT5 or PYSIDE2), reason="Only available in Qt5 bindings") @pytest.mark.skipif( using_conda(), reason="Conda packages don't seem to include QtMultimedia") def test_qtmultimediawidgets(): """Test the qtpy.QtMultimediaWidgets namespace""" from qtpy import QtMultimediaWidgets assert QtMultimediaWidgets.QCameraViewfinder is not None assert QtMultimediaWidgets.QGraphicsVideoItem is not None assert QtMultimediaWidgets.QVideoWidget is not None # assert QtMultimediaWidgets.QVideoWidgetControl is not None