-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests to retry on specific exceptions
- Loading branch information
1 parent
ebb94ff
commit 8a8a072
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from requests.exceptions import ChunkedEncodingError | ||
|
||
|
||
def pytest_set_filtered_exceptions(): | ||
""" | ||
pytest-retry: Any test will be retried if it fails due to ChunkedEncodingError, | ||
which occurs due to runregistry not being able to serve many hardcore requests | ||
at the same time. | ||
""" | ||
return [ChunkedEncodingError] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pytest>=3.6 | ||
pytest-retry | ||
pytest-cov | ||
codecov | ||
-e . |