From cf0fd3a1ea207a88531018821d7427e1bbaf0a33 Mon Sep 17 00:00:00 2001 From: Gus Class Date: Mon, 7 Oct 2019 15:45:22 -0700 Subject: [PATCH] Adds updates for samples profiler ... vision [(#2439)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2439) --- .../samples/snippets/beta_snippets_test.py | 2 -- .../samples/snippets/hybrid_glossaries/requirements.txt | 6 +++--- .../samples/snippets/requirements.txt | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) 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 265fb9867100..6f6f2959cce7 100644 --- a/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py +++ b/packages/google-cloud-translate/samples/snippets/beta_snippets_test.py @@ -99,7 +99,6 @@ def test_create_glossary(capsys, unique_glossary_id): beta_snippets.create_glossary(PROJECT_ID, unique_glossary_id) out, _ = capsys.readouterr() assert 'Created' in out - assert PROJECT_ID in out assert unique_glossary_id in out assert 'gs://cloud-samples-data/translation/glossary.csv' in out @@ -129,6 +128,5 @@ def test_delete_glossary(capsys, unique_glossary_id): beta_snippets.create_glossary(PROJECT_ID, unique_glossary_id) beta_snippets.delete_glossary(PROJECT_ID, unique_glossary_id) out, _ = capsys.readouterr() - assert PROJECT_ID in out assert 'us-central1' in out assert unique_glossary_id in out diff --git a/packages/google-cloud-translate/samples/snippets/hybrid_glossaries/requirements.txt b/packages/google-cloud-translate/samples/snippets/hybrid_glossaries/requirements.txt index 29c4261a7cf8..7a4a32b396e8 100644 --- a/packages/google-cloud-translate/samples/snippets/hybrid_glossaries/requirements.txt +++ b/packages/google-cloud-translate/samples/snippets/hybrid_glossaries/requirements.txt @@ -1,3 +1,3 @@ -google-cloud-translate==1.4.0 -google-cloud-vision==0.35.2 -google-cloud-texttospeech==0.4.0 \ No newline at end of file +google-cloud-translate==1.6.0 +google-cloud-vision==0.39.0 +google-cloud-texttospeech==0.5.0 diff --git a/packages/google-cloud-translate/samples/snippets/requirements.txt b/packages/google-cloud-translate/samples/snippets/requirements.txt index 318e3485aa01..a8bc353fd115 100644 --- a/packages/google-cloud-translate/samples/snippets/requirements.txt +++ b/packages/google-cloud-translate/samples/snippets/requirements.txt @@ -1,2 +1,2 @@ -google-cloud-translate==1.4.0 -google-cloud-storage==1.14.0 +google-cloud-translate==1.6.0 +google-cloud-storage==1.19.1