test_qt3danimation.py 1.1 KB

12345678910111213141516171819202122232425
  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_qt3danimation():
  6. """Test the qtpy.Qt3DAnimation namespace"""
  7. Qt3DAnimation = pytest.importorskip("qtpy.Qt3DAnimation")
  8. assert Qt3DAnimation.QAnimationController is not None
  9. assert Qt3DAnimation.QAdditiveClipBlend is not None
  10. assert Qt3DAnimation.QAbstractClipBlendNode is not None
  11. assert Qt3DAnimation.QAbstractAnimation is not None
  12. assert Qt3DAnimation.QKeyframeAnimation is not None
  13. assert Qt3DAnimation.QAbstractAnimationClip is not None
  14. assert Qt3DAnimation.QAbstractClipAnimator is not None
  15. assert Qt3DAnimation.QClipAnimator is not None
  16. assert Qt3DAnimation.QAnimationGroup is not None
  17. assert Qt3DAnimation.QLerpClipBlend is not None
  18. assert Qt3DAnimation.QMorphingAnimation is not None
  19. assert Qt3DAnimation.QAnimationAspect is not None
  20. assert Qt3DAnimation.QVertexBlendAnimation is not None
  21. assert Qt3DAnimation.QBlendedClipAnimator is not None
  22. assert Qt3DAnimation.QMorphTarget is not None