test_qtwebchannel.py 393 B

12345678910111213
  1. from __future__ import absolute_import
  2. import pytest
  3. from qtpy import PYQT5, PYSIDE2
  4. @pytest.mark.skipif(not (PYQT5 or PYSIDE2), reason="Only available in Qt5 bindings")
  5. def test_qtwebchannel():
  6. """Test the qtpy.QtWebChannel namespace"""
  7. from qtpy import QtWebChannel
  8. assert QtWebChannel.QWebChannel is not None
  9. assert QtWebChannel.QWebChannelAbstractTransport is not None