Skip to content

Commit

Permalink
Fixed aws region name for stubber client
Browse files Browse the repository at this point in the history
  • Loading branch information
victorskl committed Oct 16, 2024
1 parent e13010b commit aee41a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/aws/test_libeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LibEBUnitTests(AWSTestCase):

def setUp(self):
super(LibEBUnitTests, self).setUp()
mock_eb_client = boto3.client('events')
mock_eb_client = boto3.client('events', region_name='us-east-1')
self.stubber = Stubber(mock_eb_client)
self.stubber.activate()
when(aws).eb_client(...).thenReturn(mock_eb_client)
Expand Down
2 changes: 1 addition & 1 deletion tests/aws/test_libsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LibSmUnitTests(TestCase):

def setUp(self):
from libumccr.aws import libsm
mock_sm_client = boto3.client('secretsmanager')
mock_sm_client = boto3.client('secretsmanager', region_name='us-east-1')
stubber = Stubber(mock_sm_client)
stubber.add_response('get_secret_value', {
'SecretString': 'HealTheWorld', # pragma: allowlist secret
Expand Down
2 changes: 1 addition & 1 deletion tests/aws/test_libssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LibSsmUnitTests(TestCase):

def setUp(self):
from libumccr.aws import libssm
mock_ssm_client = boto3.client('ssm')
mock_ssm_client = boto3.client('ssm', region_name='us-east-1')
stubber = Stubber(mock_ssm_client)
stubber.add_response('get_parameter', {'Parameter': {'Value': 'Sello'}})
stubber.activate()
Expand Down

0 comments on commit aee41a4

Please sign in to comment.