Skip to content

Commit

Permalink
adds a test for QtOpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
renefritze committed Dec 27, 2021
1 parent c268a8a commit 581de1f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions qtpy/tests/test_qtopengl.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import pytest
from qtpy import PYSIDE2, PYSIDE6, PYQT5, PYQT6

def test_qtopengl():
"""Test the qtpy.QtOpenGL namespace"""
from qtpy import QtOpenGL

# This list is take from https://doc.qt.io/qtforpython-5/PySide2/QtOpenGL/index.html
# and may not be exhaustive
assert QtOpenGL.QGL is not None
assert QtOpenGL.QGLBuffer is not None
assert QtOpenGL.QGLColormap is not None
assert QtOpenGL.QGLContext is not None
assert QtOpenGL.QGLFormat is not None
assert QtOpenGL.QGLFrameBufferObject is not None
assert QtOpenGL.QGLFrameBufferObjectFormat is not None
assert QtOpenGL.QGLPixelBuffer is not None
assert QtOpenGL.QGLShader is not None
assert QtOpenGL.QGLShaderProgram is not None
assert QtOpenGL.QGLWidget is not None

0 comments on commit 581de1f

Please sign in to comment.