Skip to content

Commit

Permalink
Unit test patch
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Sep 13, 2024
1 parent 9016c74 commit f99ce0e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def test_handle_part_aborted(self, syn):
upload._aborted = True

with pytest.raises(SynapseUploadAbortedException):
upload._handle_part(5, None)
upload._handle_part(5)

def test_handle_part__500(self, syn):
"""Test that we retry if we encounter a 500 from AWS on a PUT to the signed URL"""
Expand Down Expand Up @@ -322,7 +322,7 @@ def _handle_part_success_test(

mock_session.put.side_effect = [aws_call[1] for aws_call in aws_calls]

result = upload._handle_part(1, None)
result = upload._handle_part(1)

expected_put_calls = [aws_call[0] for aws_call in aws_calls]
assert mock_session.put.call_args_list == expected_put_calls
Expand Down Expand Up @@ -464,7 +464,7 @@ def test_handle_part__url_expired_twice(self, syn):
mock_session.put.return_value = mock_response

with pytest.raises(SynapseHTTPError):
upload._handle_part(1, None)
upload._handle_part(1)

def test_call_upload(self, syn):
"""Verify the behavior of an upload call, it should trigger
Expand Down

0 comments on commit f99ce0e

Please sign in to comment.