Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
hooks:
- id: isort
- repo: 'https://github.com/psf/black'
rev: 21.7b0
rev: 22.1.0
hooks:
- id: black
- repo: 'https://github.com/pycqa/flake8'
Expand Down
4 changes: 2 additions & 2 deletions tests/functional/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_object_copy(self):
assert response is None

def test_copy_progress(self):
chunksize = 8 * (1024 ** 2)
chunksize = 8 * (1024**2)
self.stub_multipart_copy(chunksize, 3)
transfer_config = TransferConfig(
multipart_chunksize=chunksize,
Expand Down Expand Up @@ -329,7 +329,7 @@ def test_object_upload(self):
self.stubber.assert_no_pending_responses()

def test_multipart_upload(self):
chunksize = 8 * (1024 ** 2)
chunksize = 8 * (1024**2)
contents = six.BytesIO(b'0' * (chunksize * 3))
self.stub_multipart_upload(num_parts=3)
transfer_config = TransferConfig(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def test_upload_fileobj_progress(self):
# This has to be an integration test because the fileobj will never
# actually be read from when using the stubber and therefore the
# progress callbacks will not be invoked.
chunksize = 5 * (1024 ** 2)
chunksize = 5 * (1024**2)
config = boto3.s3.transfer.TransferConfig(
multipart_chunksize=chunksize,
multipart_threshold=chunksize,
Expand Down
17 changes: 7 additions & 10 deletions tests/unit/dynamodb/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,11 @@ def test_deserialize_list(self):
) == [Decimal('1'), 'foo', [Decimal('1.25')]]

def test_deserialize_map(self):
assert (
self.deserializer.deserialize(
{
'M': {
'foo': {'S': 'mystring'},
'bar': {'M': {'baz': {'N': '1'}}},
}
assert self.deserializer.deserialize(
{
'M': {
'foo': {'S': 'mystring'},
'bar': {'M': {'baz': {'N': '1'}}},
}
)
== {'foo': 'mystring', 'bar': {'baz': Decimal('1')}}
)
}
) == {'foo': 'mystring', 'bar': {'baz': Decimal('1')}}