Skip to content

Commit

Permalink
Upgrade mocking S3 buckets in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
grosscol committed Mar 14, 2024
1 parent 1dcdc7d commit 54ffd73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
extras_require={
'dev': ['check-manifest', 'icecream'],
'test': ['mongomock>=3.22.1', 'pytest>=6.2.2', 'pytest-mock==3.5.1',
'pytest-mongodb>=2.2.0', 'testfixtures>=6.17.1', 'moto>=4.0.0'],
'pytest-mongodb>=2.2.0', 'testfixtures>=6.17.1', 'moto>=5.0.0'],
},

entry_points={
Expand Down
4 changes: 2 additions & 2 deletions tests/core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import boto3
import io
import gzip
from moto import mock_s3
from moto import mock_aws


# Mock coverage file structure
Expand Down Expand Up @@ -78,7 +78,7 @@ def aws_credentials():

@pytest.fixture(scope="session")
def s3(aws_credentials):
with mock_s3():
with mock_aws():
yield boto3.client("s3", region_name="atlantis")


Expand Down

0 comments on commit 54ffd73

Please sign in to comment.