Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
automl: add natural language sentiment analysis ga samples [(#2677)](G…
Browse files Browse the repository at this point in the history
…oogleCloudPlatform/python-docs-samples#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 a3d9f80 commit 00a4c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 00a4c3e

Please sign in to comment.