test_qt3dcore.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_qt3dcore():
  6. """Test the qtpy.Qt3DCore namespace"""
  7. Qt3DCore = pytest.importorskip("qtpy.Qt3DCore")
  8. assert Qt3DCore.QPropertyValueAddedChange is not None
  9. assert Qt3DCore.QSkeletonLoader is not None
  10. assert Qt3DCore.QPropertyNodeRemovedChange is not None
  11. assert Qt3DCore.QPropertyUpdatedChange is not None
  12. assert Qt3DCore.QAspectEngine is not None
  13. assert Qt3DCore.QPropertyValueAddedChangeBase is not None
  14. assert Qt3DCore.QStaticPropertyValueRemovedChangeBase is not None
  15. assert Qt3DCore.QPropertyNodeAddedChange is not None
  16. assert Qt3DCore.QDynamicPropertyUpdatedChange is not None
  17. assert Qt3DCore.QStaticPropertyUpdatedChangeBase is not None
  18. assert Qt3DCore.ChangeFlags is not None
  19. assert Qt3DCore.QAbstractAspect is not None
  20. assert Qt3DCore.QBackendNode is not None
  21. assert Qt3DCore.QTransform is not None
  22. assert Qt3DCore.QPropertyUpdatedChangeBase is not None
  23. assert Qt3DCore.QNodeId is not None
  24. assert Qt3DCore.QJoint is not None
  25. assert Qt3DCore.QSceneChange is not None
  26. assert Qt3DCore.QNodeIdTypePair is not None
  27. assert Qt3DCore.QAbstractSkeleton is not None
  28. assert Qt3DCore.QComponentRemovedChange is not None
  29. assert Qt3DCore.QComponent is not None
  30. assert Qt3DCore.QEntity is not None
  31. assert Qt3DCore.QNodeCommand is not None
  32. assert Qt3DCore.QNode is not None
  33. assert Qt3DCore.QPropertyValueRemovedChange is not None
  34. assert Qt3DCore.QPropertyValueRemovedChangeBase is not None
  35. assert Qt3DCore.QComponentAddedChange is not None
  36. assert Qt3DCore.QNodeCreatedChangeBase is not None
  37. assert Qt3DCore.QNodeDestroyedChange is not None
  38. assert Qt3DCore.QArmature is not None
  39. assert Qt3DCore.QStaticPropertyValueAddedChangeBase is not None
  40. assert Qt3DCore.ChangeFlag is not None
  41. assert Qt3DCore.QSkeleton is not None