Skip to content

Commit

Permalink
Patch region as environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sansmoraxz committed May 18, 2023
1 parent d0f33bf commit 3e60f73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def setUp(self):
upload_dummy_array_to_s3(client, BUCKET_NAME, FILE_NAME)
queue_url = create_sqs_queue(QUEUE_NAME)
os.environ['QUEUE_URL'] = queue_url
os.environ['AWS_DEFAULT_REGION'] = 'us-east-1'

def test_created_object_exists(self):
"""Test that the created object exists"""
Expand Down Expand Up @@ -151,3 +152,4 @@ def tearDown(self):
sqs_client.delete_queue(QueueUrl=os.environ['QUEUE_URL'])
# Delete environment variable
del os.environ['QUEUE_URL']
del os.environ['AWS_DEFAULT_REGION']

0 comments on commit 3e60f73

Please sign in to comment.