File: test_GLGradientLegendItem.py

package info (click to toggle)
python-pyqtgraph 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,168 kB
  • sloc: python: 54,831; makefile: 128; ansic: 40; sh: 2
file content (13 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest
pytest.importorskip('OpenGL')

from pyqtgraph.opengl.GLGraphicsItem import GLGraphicsItem
from pyqtgraph.opengl import GLGradientLegendItem

from common import ensure_parentItem


def test_parentItem():
    parent = GLGraphicsItem()
    child = GLGradientLegendItem(parentItem=parent)
    ensure_parentItem(parent, child)