Skip to content

Instantly share code, notes, and snippets.

@em-shea
Last active October 6, 2021 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save em-shea/844699475a5f8f4c7297ab8e1c20939f to your computer and use it in GitHub Desktop.
Save em-shea/844699475a5f8f4c7297ab8e1c20939f to your computer and use it in GitHub Desktop.
import unittest
from unittest import mock
# Setting the default AWS region environment variable required by the Python SDK boto3
with mock.patch.dict('os.environ', {'AWS_REGION': 'us-east-1'}):
from translate_file.app import lambda_handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment