From 9af5519e9bd17ca2776f4cf5258511e3f454c6f8 Mon Sep 17 00:00:00 2001 From: Guillaume Favelier Date: Thu, 20 Aug 2020 11:25:11 +0200 Subject: [PATCH] TST: Add a basic test in IPython --- tests/test_plotting.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)