Skip to content

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 f4c7121 commit eb5193e
Showing 1 changed file with 1 addition and 1 deletion.
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 eb5193e

Please sign in to comment.