Skip to content

Commit

Permalink
Add flaky test for intermitent connectivity errors
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Aug 19, 2024
1 parent 9886263 commit a0ee0f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions napari_plugin_manager/_tests/test_npe2api.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from flaky import flaky

from napari_plugin_manager.npe2api import (
_user_agent,
cache_clear,
Expand All @@ -11,6 +13,7 @@ def test_user_agent():
assert _user_agent()


@flaky(max_runs=3, min_passes=2)
def test_plugin_summaries():
keys = [
"name",
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ dev = [
]

testing = [
"flaky",
"pytest",
"virtualenv",
"pytest-cov",
"pytest-qt",
"virtualenv"
]

docs = [
Expand Down

0 comments on commit a0ee0f1

Please sign in to comment.