Skip to content

Commit

Permalink
Add tests for
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan343 committed Oct 8, 2024
1 parent d9031ea commit c0a79bc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,16 @@ def test_no_payload_signing_disabled_does_not_set_key(self):
)
self.assertNotIn('payload_signing_enabled', context)

def test_set_default_multipart_checksum_algorithm(self):
params = {}
handlers.set_default_multipart_checksum_algorithm(params)
self.assertEqual(params["ChecksumAlgorithm"], "CRC32")

def test_does_not_set_default_multipart_checksum_algorithm(self):
params = {"ChecksumAlgorithm": "SHA256"}
handlers.set_default_multipart_checksum_algorithm(params)
self.assertEqual(params["ChecksumAlgorithm"], "SHA256")


@pytest.mark.parametrize(
'auth_type, expected_response', [('v4', 's3v4'), ('v4a', 's3v4a')]
Expand Down

0 comments on commit c0a79bc

Please sign in to comment.