Skip to content

Commit 6d7f286

Browse files
committed
Remove unnecessary env vars changes
1 parent 9c8a46b commit 6d7f286

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

test/impl/mock_dynamodb_test_case.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
"""
55

66
import 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-
147
import boto3 # type: ignore
158
from moto import mock_dynamodb # type: ignore
169
from src.config import AWS_REGION, OBJECTS_TABLE, LOCK_TABLE
1710
from .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
2118
class MockDynamoDbTestCase(BaseClass):

test/impl/mock_sqs_test_case.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
"""
55

66
import 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-
147
import boto3 # type: ignore
158
from moto import mock_sqs # type: ignore
169
from src.config import AWS_REGION
1710
from .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
2118
class MockSQSTestCase(BaseClass):

0 commit comments

Comments
 (0)