Vehicle-Anti-Theft-Face-Rec.../venv/Lib/site-packages/qtpy/tests/test_qtquick.py

53 lines
2.2 KiB
Python

from __future__ import absolute_import
import pytest
from qtpy import PYQT5, PYSIDE2
@pytest.mark.skipif(not (PYQT5 or PYSIDE2), reason="Only available in Qt5 bindings")
def test_qtquick():
"""Test the qtpy.QtQuick namespace"""
from qtpy import QtQuick
assert QtQuick.QQuickAsyncImageProvider is not None
if not PYSIDE2:
assert QtQuick.QQuickCloseEvent is not None
assert QtQuick.QQuickFramebufferObject is not None
assert QtQuick.QQuickImageProvider is not None
assert QtQuick.QQuickImageResponse is not None
assert QtQuick.QQuickItem is not None
assert QtQuick.QQuickItemGrabResult is not None
assert QtQuick.QQuickPaintedItem is not None
assert QtQuick.QQuickRenderControl is not None
assert QtQuick.QQuickTextDocument is not None
assert QtQuick.QQuickTextureFactory is not None
assert QtQuick.QQuickView is not None
assert QtQuick.QQuickWindow is not None
assert QtQuick.QSGAbstractRenderer is not None
assert QtQuick.QSGBasicGeometryNode is not None
assert QtQuick.QSGClipNode is not None
assert QtQuick.QSGDynamicTexture is not None
assert QtQuick.QSGEngine is not None
if not PYSIDE2:
assert QtQuick.QSGFlatColorMaterial is not None
assert QtQuick.QSGGeometry is not None
assert QtQuick.QSGGeometryNode is not None
#assert QtQuick.QSGImageNode is not None
if not PYSIDE2:
assert QtQuick.QSGMaterial is not None
assert QtQuick.QSGMaterialShader is not None
assert QtQuick.QSGMaterialType is not None
assert QtQuick.QSGNode is not None
assert QtQuick.QSGOpacityNode is not None
if not PYSIDE2:
assert QtQuick.QSGOpaqueTextureMaterial is not None
#assert QtQuick.QSGRectangleNode is not None
#assert QtQuick.QSGRenderNode is not None
#assert QtQuick.QSGRendererInterface is not None
assert QtQuick.QSGSimpleRectNode is not None
assert QtQuick.QSGSimpleTextureNode is not None
assert QtQuick.QSGTexture is not None
if not PYSIDE2:
assert QtQuick.QSGTextureMaterial is not None
assert QtQuick.QSGTextureProvider is not None
assert QtQuick.QSGTransformNode is not None
if not PYSIDE2:
assert QtQuick.QSGVertexColorMaterial is not None