Skip to content

Commit

Permalink
DAS-2034 - Update test documentation string regarding retries.
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlittlejohns committed Dec 20, 2023
1 parent 0a89db0 commit cbd5153
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/unit/test_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ def test_get_file_mimetype(self):

@patch('hoss.utilities.util_download')
def test_download_url(self, mock_util_download):
""" Ensure that the `harmony.util.download` function is called. Also
ensure that if a 500 error is returned, the request is retried. If
a different HTTPError occurs, the caught HTTPError should be
re-raised. Finally, check the maximum number of request attempts is
not exceeded.
""" Ensure that the `harmony.util.download` function is called. If an
error occurs, the caught exception should be re-raised with a
custom exception with a human-readable error message.
"""
output_directory = 'output/dir'
Expand Down

0 comments on commit cbd5153

Please sign in to comment.