Skip to content

Commit

Permalink
TST: Add a basic test in IPython
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeFavelier committed Aug 20, 2020
1 parent 597bd07 commit 9af5519
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ def add_sphere(self):
self.vtk_widget.reset_camera()


def test_ipython():
import IPython
cmd = "from pyvistaqt import BackgroundPlotter as Plotter; p = Plotter(); p.close()"
IPython.start_ipython(argv=["-c", cmd])


def test_depth_peeling(qtbot):
plotter = BackgroundPlotter()
qtbot.addWidget(plotter.app_window)
Expand Down

0 comments on commit 9af5519

Please sign in to comment.