Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Mar 18, 2024
1 parent 97566be commit 3bd30c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions napari_console/_tests/test_qt_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def actual_factory(*model_args, viewer_class=Viewer, **model_kwargs):
def test_console(qtbot, make_test_viewer):
"""Test creating the console."""
viewer = make_test_viewer()
console = QtConsole(viewer)
style_sheet = viewer.window._qt_viewer.styleSheet()
console = QtConsole(viewer, style_sheet)
qtbot.addWidget(console)
assert console.kernel_client is not None
assert console.viewer is viewer
Expand All @@ -43,7 +44,8 @@ def mock_get_ipython():
side_effect=mock_get_ipython,
):
viewer = make_test_viewer()
console = QtConsole(viewer)
style_sheet = viewer.window._qt_viewer.styleSheet()
console = QtConsole(viewer, style_sheet)
qtbot.addWidget(console)
assert console.kernel_client is None

Expand Down

0 comments on commit 3bd30c1

Please sign in to comment.