Skip to content

Commit

Permalink
Set a default region when calling moto create_bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoWill committed Mar 6, 2023
1 parent daa52d1 commit dde8995
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cdk/lambdas/wdiv-s3-trigger/tests/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
from unittest import TestCase

import boto3
import moto
import responses
from botocore.exceptions import ClientError
from moto import mock_s3, mock_ses
from moto.ses import ses_backends
from moto.s3 import responses as moto_s3_responses

from trigger.handler import main

Expand Down Expand Up @@ -54,6 +56,8 @@
}"""
)

os.environ["AWS_DEFAULT_REGION"] = moto_s3_responses.DEFAULT_REGION_NAME = "eu-west-1"


class HandlerTests(TestCase):
"""
Expand Down

0 comments on commit dde8995

Please sign in to comment.