|
8 | 8 | import boto3 |
9 | 9 | from botocore import UNSIGNED |
10 | 10 | from botocore.config import Config |
11 | | -from moto import mock_s3 |
| 11 | +from moto import mock_aws |
12 | 12 | from piccolo.columns.column_types import Array, Varchar |
13 | 13 | from piccolo.table import Table |
14 | 14 |
|
@@ -39,7 +39,7 @@ def test_store_file(self, get_client: MagicMock, uuid_module: MagicMock): |
39 | 39 | bucket_name = "bucket123" |
40 | 40 | folder_name = "movie_posters" |
41 | 41 |
|
42 | | - with mock_s3(): |
| 42 | + with mock_aws(): |
43 | 43 | s3 = boto3.resource("s3", region_name="us-east-1") |
44 | 44 | s3.create_bucket(Bucket=bucket_name) |
45 | 45 |
|
@@ -142,7 +142,7 @@ def test_unsigned(self, get_client: MagicMock, uuid_module: MagicMock): |
142 | 142 | bucket_name = "bucket123" |
143 | 143 | folder_name = "movie_posters" |
144 | 144 |
|
145 | | - with mock_s3(): |
| 145 | + with mock_aws(): |
146 | 146 | s3 = boto3.resource("s3", region_name="us-east-1") |
147 | 147 | s3.create_bucket(Bucket=bucket_name) |
148 | 148 |
|
@@ -206,7 +206,7 @@ def test_no_folder(self, get_client: MagicMock, uuid_module: MagicMock): |
206 | 206 | ) |
207 | 207 | bucket_name = "bucket123" |
208 | 208 |
|
209 | | - with mock_s3(): |
| 209 | + with mock_aws(): |
210 | 210 | s3 = boto3.resource("s3", region_name="us-east-1") |
211 | 211 | s3.create_bucket(Bucket=bucket_name) |
212 | 212 |
|
|
0 commit comments