From 0c64612be58ee9f1573d668d5379a21f3e7f66a4 Mon Sep 17 00:00:00 2001 From: Lincoln Puzey Date: Mon, 27 Jul 2020 16:02:14 +0800 Subject: [PATCH] Fix test that were failing due to wrapped content. --- tests/test_s3boto3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_s3boto3.py b/tests/test_s3boto3.py index 4c84de168..eef325356 100644 --- a/tests/test_s3boto3.py +++ b/tests/test_s3boto3.py @@ -112,7 +112,7 @@ def test_storage_save_with_acl(self): obj = self.storage.bucket.Object.return_value obj.upload_fileobj.assert_called_with( - content, + mock.ANY, ExtraArgs={ 'ContentType': 'text/plain', 'ACL': 'private', @@ -128,7 +128,7 @@ def test_storage_save_gzipped(self): self.storage.save(name, content) obj = self.storage.bucket.Object.return_value obj.upload_fileobj.assert_called_with( - content, + mock.ANY, ExtraArgs={ 'ContentType': 'application/octet-stream', 'ContentEncoding': 'gzip',