File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44"""
55
66import os
7-
8- # "Mock" the AWS credentials as they can't be mocked in Botocore currently
9- os .environ .setdefault ("AWS_ACCESS_KEY_ID" , "foobar_key" )
10- os .environ .setdefault ("AWS_SECRET_ACCESS_KEY" , "foobar_secret" )
11- # Set ENV to test so the config module provides proper test defaults
12- os .environ .setdefault ("ENV" , "test" )
13-
147import boto3 # type: ignore
158from moto import mock_dynamodb # type: ignore
169from src .config import AWS_REGION , OBJECTS_TABLE , LOCK_TABLE
1710from .base_test_case_class import BaseClass
1811
12+ # "Mock" the AWS credentials as they can't be mocked in Botocore currently
13+ os .environ .setdefault ("AWS_ACCESS_KEY_ID" , "foobar_key" )
14+ os .environ .setdefault ("AWS_SECRET_ACCESS_KEY" , "foobar_secret" )
15+
1916
2017@mock_dynamodb
2118class MockDynamoDbTestCase (BaseClass ):
Original file line number Diff line number Diff line change 44"""
55
66import os
7-
8- # "Mock" the AWS credentials as they can't be mocked in Botocore currently
9- os .environ .setdefault ("AWS_ACCESS_KEY_ID" , "foobar_key" )
10- os .environ .setdefault ("AWS_SECRET_ACCESS_KEY" , "foobar_secret" )
11- # Set ENV to test so the config module provides proper test defaults
12- os .environ .setdefault ("ENV" , "test" )
13-
147import boto3 # type: ignore
158from moto import mock_sqs # type: ignore
169from src .config import AWS_REGION
1710from .base_test_case_class import BaseClass
1811
12+ # "Mock" the AWS credentials as they can't be mocked in Botocore currently
13+ os .environ .setdefault ("AWS_ACCESS_KEY_ID" , "foobar_key" )
14+ os .environ .setdefault ("AWS_SECRET_ACCESS_KEY" , "foobar_secret" )
15+
1916
2017@mock_sqs
2118class MockSQSTestCase (BaseClass ):
You can’t perform that action at this time.
0 commit comments