test_qt3drender.py 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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_qt3drender():
  6. """Test the qtpy.Qt3DRender namespace"""
  7. Qt3DRender = pytest.importorskip("qtpy.Qt3DRender")
  8. assert Qt3DRender.QPointSize is not None
  9. assert Qt3DRender.QFrustumCulling is not None
  10. assert Qt3DRender.QPickPointEvent is not None
  11. assert Qt3DRender.QRenderPassFilter is not None
  12. assert Qt3DRender.QMesh is not None
  13. assert Qt3DRender.QRayCaster is not None
  14. assert Qt3DRender.QStencilMask is not None
  15. assert Qt3DRender.QPickLineEvent is not None
  16. assert Qt3DRender.QPickTriangleEvent is not None
  17. assert Qt3DRender.QRenderState is not None
  18. assert Qt3DRender.QTextureWrapMode is not None
  19. assert Qt3DRender.QRenderPass is not None
  20. assert Qt3DRender.QGeometryRenderer is not None
  21. assert Qt3DRender.QAttribute is not None
  22. assert Qt3DRender.QStencilOperation is not None
  23. assert Qt3DRender.QScissorTest is not None
  24. assert Qt3DRender.QTextureCubeMapArray is not None
  25. assert Qt3DRender.QRenderTarget is not None
  26. assert Qt3DRender.QStencilTest is not None
  27. assert Qt3DRender.QTextureData is not None
  28. assert Qt3DRender.QBuffer is not None
  29. assert Qt3DRender.QLineWidth is not None
  30. assert Qt3DRender.QLayer is not None
  31. assert Qt3DRender.QTextureRectangle is not None
  32. assert Qt3DRender.QRenderTargetSelector is not None
  33. assert Qt3DRender.QPickingSettings is not None
  34. assert Qt3DRender.QCullFace is not None
  35. assert Qt3DRender.QAbstractFunctor is not None
  36. assert Qt3DRender.PropertyReaderInterface is not None
  37. assert Qt3DRender.QMaterial is not None
  38. assert Qt3DRender.QAlphaCoverage is not None
  39. assert Qt3DRender.QClearBuffers is not None
  40. assert Qt3DRender.QAlphaTest is not None
  41. assert Qt3DRender.QStencilOperationArguments is not None
  42. assert Qt3DRender.QTexture2DMultisample is not None
  43. assert Qt3DRender.QLevelOfDetailSwitch is not None
  44. assert Qt3DRender.QRenderStateSet is not None
  45. assert Qt3DRender.QViewport is not None
  46. assert Qt3DRender.QObjectPicker is not None
  47. assert Qt3DRender.QPolygonOffset is not None
  48. assert Qt3DRender.QRenderSettings is not None
  49. assert Qt3DRender.QFrontFace is not None
  50. assert Qt3DRender.QTexture3D is not None
  51. assert Qt3DRender.QTextureBuffer is not None
  52. assert Qt3DRender.QTechniqueFilter is not None
  53. assert Qt3DRender.QLayerFilter is not None
  54. assert Qt3DRender.QFilterKey is not None
  55. assert Qt3DRender.QRenderSurfaceSelector is not None
  56. assert Qt3DRender.QEnvironmentLight is not None
  57. assert Qt3DRender.QMemoryBarrier is not None
  58. assert Qt3DRender.QNoDepthMask is not None
  59. assert Qt3DRender.QBlitFramebuffer is not None
  60. assert Qt3DRender.QGraphicsApiFilter is not None
  61. assert Qt3DRender.QAbstractTexture is not None
  62. assert Qt3DRender.QRenderCaptureReply is not None
  63. assert Qt3DRender.QAbstractLight is not None
  64. assert Qt3DRender.QAbstractRayCaster is not None
  65. assert Qt3DRender.QDirectionalLight is not None
  66. assert Qt3DRender.QDispatchCompute is not None
  67. assert Qt3DRender.QBufferDataGenerator is not None
  68. assert Qt3DRender.QPointLight is not None
  69. assert Qt3DRender.QStencilTestArguments is not None
  70. assert Qt3DRender.QTexture1D is not None
  71. assert Qt3DRender.QCameraSelector is not None
  72. assert Qt3DRender.QProximityFilter is not None
  73. assert Qt3DRender.QTexture1DArray is not None
  74. assert Qt3DRender.QBlendEquation is not None
  75. assert Qt3DRender.QTextureImageDataGenerator is not None
  76. assert Qt3DRender.QSpotLight is not None
  77. assert Qt3DRender.QEffect is not None
  78. assert Qt3DRender.QSeamlessCubemap is not None
  79. assert Qt3DRender.QTexture2DMultisampleArray is not None
  80. assert Qt3DRender.QComputeCommand is not None
  81. assert Qt3DRender.QFrameGraphNode is not None
  82. assert Qt3DRender.QSortPolicy is not None
  83. assert Qt3DRender.QTextureImageData is not None
  84. assert Qt3DRender.QCamera is not None
  85. assert Qt3DRender.QGeometry is not None
  86. assert Qt3DRender.QScreenRayCaster is not None
  87. assert Qt3DRender.QClipPlane is not None
  88. assert Qt3DRender.QMultiSampleAntiAliasing is not None
  89. assert Qt3DRender.QRayCasterHit is not None
  90. assert Qt3DRender.QAbstractTextureImage is not None
  91. assert Qt3DRender.QNoDraw is not None
  92. assert Qt3DRender.QPickEvent is not None
  93. assert Qt3DRender.QRenderCapture is not None
  94. assert Qt3DRender.QDepthTest is not None
  95. assert Qt3DRender.QParameter is not None
  96. assert Qt3DRender.QLevelOfDetail is not None
  97. assert Qt3DRender.QGeometryFactory is not None
  98. assert Qt3DRender.QTexture2D is not None
  99. assert Qt3DRender.QRenderAspect is not None
  100. assert Qt3DRender.QPaintedTextureImage is not None
  101. assert Qt3DRender.QDithering is not None
  102. assert Qt3DRender.QTextureGenerator is not None
  103. assert Qt3DRender.QBlendEquationArguments is not None
  104. assert Qt3DRender.QLevelOfDetailBoundingSphere is not None
  105. assert Qt3DRender.QColorMask is not None
  106. assert Qt3DRender.QSceneLoader is not None
  107. assert Qt3DRender.QTextureLoader is not None
  108. assert Qt3DRender.QShaderProgram is not None
  109. assert Qt3DRender.QTextureCubeMap is not None
  110. assert Qt3DRender.QTexture2DArray is not None
  111. assert Qt3DRender.QTextureImage is not None
  112. assert Qt3DRender.QCameraLens is not None
  113. assert Qt3DRender.QRenderTargetOutput is not None
  114. assert Qt3DRender.QShaderProgramBuilder is not None
  115. assert Qt3DRender.QTechnique is not None
  116. assert Qt3DRender.QShaderData is not None