Skip to content

Commit

Permalink
convert to moto 5 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Jan 30, 2024
1 parent dcc5efe commit 25aaff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import socket

import boto3
from moto import mock_s3
from moto import mock_aws
import motor.motor_asyncio
import pytest
import pytest_asyncio
Expand Down Expand Up @@ -62,7 +62,7 @@ def s3conn(monkeypatch):
monkeypatch.setenv('S3_ACCESS_KEY', 'XXXX')
monkeypatch.setenv('S3_SECRET_KEY', 'XXXX')

with mock_s3():
with mock_aws():
conn = boto3.client('s3', region_name='us-east-1')
conn.create_bucket(Bucket='iceprod2-logs')
yield conn

0 comments on commit 25aaff6

Please sign in to comment.