Skip to content

Commit

Permalink
Fix tests due to function rename
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed May 29, 2024
1 parent fc2dbbc commit ee04247
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions napari_plugin_manager/_tests/test_qt_plugin_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,14 @@ def test_filter_available_plugins(plugin_dialog):
"""
plugin_dialog.filter("")
assert plugin_dialog.available_list.count() == 2
assert plugin_dialog.available_list._count_visible() == 2
assert plugin_dialog.available_list.count_visible() == 2

plugin_dialog.filter("no-match@123")
assert plugin_dialog.available_list._count_visible() == 0
assert plugin_dialog.available_list.count_visible() == 0

plugin_dialog.filter("")
plugin_dialog.filter("test-name-0")
assert plugin_dialog.available_list._count_visible() == 1
assert plugin_dialog.available_list.count_visible() == 1


def test_filter_installed_plugins(plugin_dialog):
Expand All @@ -255,10 +255,10 @@ def test_filter_installed_plugins(plugin_dialog):
list (the top one).
"""
plugin_dialog.filter("")
assert plugin_dialog.installed_list._count_visible() >= 0
assert plugin_dialog.installed_list.count_visible() >= 0

plugin_dialog.filter("no-match@123")
assert plugin_dialog.installed_list._count_visible() == 0
assert plugin_dialog.installed_list.count_visible() == 0


def test_visible_widgets(request, plugin_dialog):
Expand All @@ -285,7 +285,7 @@ def test_version_dropdown(plugin_dialog):


def test_plugin_list_count_items(plugin_dialog):
assert plugin_dialog.installed_list._count_visible() == 2
assert plugin_dialog.installed_list.count_visible() == 2


def test_plugin_list_handle_action(plugin_dialog, qtbot):
Expand Down

0 comments on commit ee04247

Please sign in to comment.