Skip to content

Commit

Permalink
Fix panel test
Browse files Browse the repository at this point in the history
  • Loading branch information
oualidbenkarim authored and oualidbenkarim committed Aug 2, 2022
1 parent c3efb97 commit c8ba76a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions brainspace/tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ def plotter_multiple_renderers():

@pytest.mark.skipif(ipy is None or pn is None, reason="Requires panel")
def test_plotter_panel():

cls = (pn.pane.VTK, pn.pane.vtk.vtk.VTKRenderWindowSynchronized)
p = plotter_single_renderer()
img = p.to_panel()
assert isinstance(img, pn.pane.VTK)
assert isinstance(img, cls)

img = p.show(embed_nb=True, interactive=True)
assert isinstance(img, pn.pane.VTK)
assert isinstance(img, cls)
p.close()

p = plotter_multiple_renderers()
Expand Down

0 comments on commit c8ba76a

Please sign in to comment.