Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Jan 8, 2025
1 parent 4fd1637 commit dfad6aa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions napari_plugin_manager/_tests/test_qt_plugin_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def test_export_plugins(plugin_dialog, tmp_path):
@pytest.mark.skipif(
not sys.platform.startswith('linux'), reason="Test works only on linux"
)
def test_import_plugins_button(plugin_dialog, tmp_path, qtbot):
def test_import_plugins(plugin_dialog, tmp_path, qtbot):
def _timer():
dialog = QApplication.activeModalWidget()
dialog.reject()
Expand All @@ -645,11 +645,6 @@ def _timer():
timer.start(4_000)
plugin_dialog.import_button.click()

path = tmp_path / 'plugins.txt'
path.write_text('requests\npyzenhub\n')
with qtbot.waitSignal(plugin_dialog.installer.allFinished, timeout=60_000):
plugin_dialog.import_plugins(str(path))


def test_import_plugins(plugin_dialog, tmp_path, qtbot):
path = tmp_path / 'plugins.txt'
Expand Down

0 comments on commit dfad6aa

Please sign in to comment.