From eb5193e015dd3aba0eaf38d880dde51a9101812f Mon Sep 17 00:00:00 2001 From: Noah Negrey Date: Tue, 7 Jan 2020 11:12:01 -0700 Subject: [PATCH] automl: add natural language sentiment analysis ga samples [(#2677)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/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 --- .../samples/snippets/beta_snippets_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py b/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py index 10a30c800733..4d65c3c2cd6a 100644 --- a/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py +++ b/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py @@ -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):