Skip to content

Commit

Permalink
chore: fix moto usage
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Jul 28, 2024
1 parent 634d7d2 commit 8378375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import tempfile

import pytest
from moto import mock_s3
from moto import mock_aws
import boto3

from streaming_form_data.targets import (
Expand Down Expand Up @@ -299,7 +299,7 @@ def test_custom_target_not_sent():

@pytest.fixture()
def mock_client():
with mock_s3():
with mock_aws():
client = boto3.client(service_name="s3")
client.create_bucket(Bucket=BUCKET_NAME)
yield client
Expand Down

0 comments on commit 8378375

Please sign in to comment.