Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed failing test by correcting translated Spanish result. Now match…
…es what Google Translate API is providing for the given input.
  • Loading branch information
jschnurr committed Feb 11, 2016
commit b9d802ddd98e49818dfd073dcad12bb7c79e3cad
2 changes: 1 addition & 1 deletion tests/test_translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_translate_missing_from_language_auto_detects(self):
def test_translate_text(self):
text = "This is a sentence."
translated = self.translator.translate(text, to_lang="es")
assert_equal(translated, "Esta es una frase.")
assert_equal(translated, "Esta es una oración.")
es_text = "Esta es una frase."
to_en = self.translator.translate(es_text, from_lang="es", to_lang="en")
assert_equal(to_en, "This is a sentence.")
Expand Down