1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
import pytest
from qtpy import PYQT5, PYQT6, PYSIDE2
from qtpy.tests.utils import pytest_importorskip
@pytest.mark.skipif(PYSIDE2, reason="Not available for PySide2")
def test_qtnetworkauth():
"""Test the qtpy.QtNetworkAuth namespace"""
QtNetworkAuth = pytest_importorskip("qtpy.QtNetworkAuth")
assert QtNetworkAuth.QAbstractOAuth is not None
assert QtNetworkAuth.QAbstractOAuth2 is not None
assert QtNetworkAuth.QAbstractOAuthReplyHandler is not None
assert QtNetworkAuth.QOAuth1 is not None
assert QtNetworkAuth.QOAuth1Signature is not None
assert QtNetworkAuth.QOAuth2AuthorizationCodeFlow is not None
|