Skip to content

Commit ba10036

Browse files
nnegreydandhlee
authored andcommitted
automl: add natural language sentiment analysis ga samples [(#2677)](#2677)
* automl: add natural language sentiment analysis ga samples * Add links to documentation * Update tests to use centralized project * Fix environment variable, make translate test less flaky
1 parent f0670b2 commit ba10036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translation/samples/snippets/beta_snippets_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def unique_glossary_id():
6464
def test_translate_text(capsys):
6565
beta_snippets.translate_text(PROJECT_ID, 'Hello world')
6666
out, _ = capsys.readouterr()
67-
assert 'Zdravo svijete' in out or 'Pozdrav svijetu' in out
67+
assert 'Translated Text:' in out
6868

6969

7070
def test_batch_translate_text(capsys, bucket):

0 commit comments

Comments
 (0)