diff --git a/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py b/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py index 56534c6cbad1..265fb9867100 100644 --- a/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py +++ b/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py @@ -63,7 +63,7 @@ def unique_glossary_id(): def test_translate_text(capsys): beta_snippets.translate_text(PROJECT_ID, 'Hello world') out, _ = capsys.readouterr() - assert 'Zdravo svet' in out + assert 'Zdravo svet' in out or 'Pozdrav svijetu' in out def test_batch_translate_text(capsys, bucket): diff --git a/packages/google-cloud-translate/samples/snippets/snippets_test.py b/packages/google-cloud-translate/samples/snippets/snippets_test.py index 5123576698ad..6d63759daeee 100644 --- a/packages/google-cloud-translate/samples/snippets/snippets_test.py +++ b/packages/google-cloud-translate/samples/snippets/snippets_test.py @@ -46,4 +46,4 @@ def test_translate_utf8(capsys): text = u'나는 파인애플을 좋아한다.' snippets.translate_text('en', text) out, _ = capsys.readouterr() - assert u'I like pineapples.' in out + assert u'I like pineapple' in out