Skip to content

Commit

Permalink
removed one test from main window
Browse files Browse the repository at this point in the history
  • Loading branch information
christinab12 committed Jul 23, 2024
1 parent 021840f commit 0d144a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/test/test_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def test_on_finished(qtbot, app):
assert app.worker_thread is None

'''
# what is the intended use case here? How would an exception be triggered?
def test_launch_napari_button_clicked_with_selected_img(qtbot, app):
with pytest.raises(Exception) as exc_info:
Expand All @@ -155,13 +157,13 @@ def test_launch_napari_button_clicked_with_selected_img(qtbot, app):
assert "An error occurred while opening the Napari window" in str(exc_info.value)
'''

'''
def test_launch_napari_button_click_without_selection(qtbot, app):
# Try clicking the view button without having selected an image
app.sim = True
qtbot.mouseClick(app.launch_nap_button, Qt.LeftButton)
assert not hasattr(app, "nap_win")
'''
# removing this test as launch_nap_button does not exist anymore!
def test_launch_napari_button_click(qtbot, app, setup_global_variable):
settings.accepted_types = setup_global_variable
Expand Down

0 comments on commit 0d144a6

Please sign in to comment.