def test_translate_standard(): expected_text = "Hello" text = translate_text("Bonjour", "fr", "en", PROJECT_ID, "bistro-glossary") assert text == expected_text
def test_translate_standard(): expected_text = 'Hello' text = translate_text('Bonjour', 'fr', 'en', PROJECT_ID, 'bistro-glossary') assert text == expected_text
def test_translate_glossary(): expected_text = "I eat goat cheese" input_text = "Je mange du chevre" text = translate_text(input_text, "fr", "en", PROJECT_ID, "bistro-glossary") assert text == expected_text
def test_translate_glossary(): expected_text = 'I eat goat cheese' input_text = 'Je mange du chevre' text = translate_text(input_text, 'fr', 'en', PROJECT_ID, 'bistro-glossary') assert text == expected_text