Skip to content

Commit

Permalink
automl: add natural language sentiment analysis ga samples [(#2677)](#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
nnegrey authored and danoscarmike committed Jul 31, 2020
1 parent d909a9d commit 4c7db15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translation/samples/snippets/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def unique_glossary_id():
def test_translate_text(capsys):
beta_snippets.translate_text(PROJECT_ID, 'Hello world')
out, _ = capsys.readouterr()
assert 'Zdravo svijete' in out or 'Pozdrav svijetu' in out
assert 'Translated Text:' in out


def test_batch_translate_text(capsys, bucket):
Expand Down

0 comments on commit 4c7db15

Please sign in to comment.