File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5
5
import boto3
6
6
import moto
7
7
import pytest
8
- from moto import mock_s3
8
+ from moto import mock_aws
9
9
10
10
from ..s3 import S3 , Bucket , Key , Prefix
11
11
@@ -138,7 +138,7 @@ def test_key_defaults():
138
138
assert k1 .is_prefix is False
139
139
140
140
141
- @mock_s3
141
+ @mock_aws
142
142
def test_s3_defaults ():
143
143
s1 = S3 ()
144
144
s2 = S3 ()
@@ -164,8 +164,8 @@ def test_s3_defaults():
164
164
165
165
@pytest .fixture (scope = "function" )
166
166
def s3_client ():
167
- mock_s3 = moto .mock_s3 ()
168
- mock_s3 .start ()
167
+ mock_aws = moto .mock_aws ()
168
+ mock_aws .start ()
169
169
170
170
client = boto3 .client ('s3' )
171
171
client .create_bucket (Bucket = test_bucket_name , CreateBucketConfiguration = {'LocationConstraint' : 'us-west-2' })
@@ -178,7 +178,7 @@ def s3_client():
178
178
client .delete_object (Bucket = test_bucket_name , Key = test_empty_file_path )
179
179
except Exception :
180
180
pass
181
- mock_s3 .stop ()
181
+ mock_aws .stop ()
182
182
183
183
184
184
def test_s3_read (s3_client ):
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ google_compute_engine # Need this because boto has issues with dynamic package l
6
6
ipython>=5.0
7
7
ipywidgets
8
8
notebook
9
- moto < 5.0.0
9
+ moto >= 5.0.0,<5.1 .0
10
10
pytest>=4.1
11
11
pytest-cov>=2.6.1
12
12
pytest-mock>=1.10
You can’t perform that action at this time.
0 commit comments