We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d082eaf + 5d9a5be commit 452425cCopy full SHA for 452425c
tests/test_multipart.py
@@ -206,8 +206,8 @@ def test_multipart_manager_generate_presigned_complete_body(multipart_manager: M
206
def test_multipart_manager_get_object_size(
207
storage, multipart_manager: MultipartManager, file_size: int
208
):
209
- key = f"object-with-size-{file_size}"
210
- # Storage.save may rename this, if the key is not unique
+ key = storage.get_alternative_name(f"object-with-size-{file_size}", "")
+ # In theory, Storage.save can change the key, though this shouldn't happen with a randomized key
211
key = storage.save(name=key, content=BytesIO(b"X" * file_size))
212
213
size = multipart_manager.get_object_size(
0 commit comments