File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/slackBotFunction/tests Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,16 @@ def mock_env():
2424 "GUARD_RAIL_VERSION" : "1" ,
2525 "AWS_LAMBDA_FUNCTION_NAME" : "test-function" ,
2626 }
27- with patch .dict (os .environ , env_vars ):
27+ env_vars ["AWS_DEFAULT_REGION" ] = env_vars ["AWS_REGION" ]
28+ with patch .dict (os .environ , env_vars , clear = False ):
2829 yield env_vars
2930
3031
3132@pytest .fixture
3233def mock_dynamodb_table ():
3334 """Mock DynamoDB table"""
3435 with mock_aws ():
35- dynamodb = boto3 .resource ("dynamodb" , region_name = "eu-west-2" ) # noqa: S2622 test setup, ignore sonarqube check
36+ dynamodb = boto3 .resource ("dynamodb" )
3637 table = dynamodb .create_table (
3738 TableName = "test-bot-state-table" ,
3839 KeySchema = [{"AttributeName" : "eventId" , "KeyType" : "HASH" }],
You can’t perform that action at this time.
0 commit comments