Skip to content

Commit 67260e9

Browse files
crowdusnnegrey
authored andcommitted
Translate beta samples fix (#2327)
* fixing translate-with-glossary bug * tests passing * reverting to python3 compatibility * snippets test fix
1 parent 7d01d74 commit 67260e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

translate/cloud-client/beta_snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def unique_glossary_id():
6363
def test_translate_text(capsys):
6464
beta_snippets.translate_text(PROJECT_ID, 'Hello world')
6565
out, _ = capsys.readouterr()
66-
assert 'Zdravo svet' in out
66+
assert 'Zdravo svet' in out or 'Pozdrav svijetu' in out
6767

6868

6969
def test_batch_translate_text(capsys, bucket):

translate/cloud-client/snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def test_translate_utf8(capsys):
4646
text = u'나는 파인애플을 좋아한다.'
4747
snippets.translate_text('en', text)
4848
out, _ = capsys.readouterr()
49-
assert u'I like pineapples.' in out
49+
assert u'I like pineapple' in out

0 commit comments

Comments
 (0)