diff --git a/tests/test_plotting.py b/tests/test_plotting.py index d8ccbd89..ae16edb5 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -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)