Created
June 22, 2021 19:14
-
-
Save em-shea/543edae5fc9ff5c9da97f0b3b9c47f34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mock call to S3 to read file | |
def mocked_read_file(bucket_name, key_name): | |
return "我爱写单元测试!" | |
# Mock call to Translate to translate file text | |
def mocked_translate_text(original_text): | |
return { | |
"original_text":"我爱写单元测试!", | |
"translated_text":"I love writing unit tests!", | |
"original_language":"zh", | |
"target_language":"en" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment