From 2432ab0b76ee2417cf4b7a3ec0fe044ed0c9cb37 Mon Sep 17 00:00:00 2001 From: Takashi Matsuo Date: Tue, 12 May 2020 21:38:39 -0700 Subject: [PATCH] chore: some lint fixes [(#3751)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/3751) * chore: some lint fixes * longer timeout, more retries * disable detect_test.py::test_async_detect_document --- .../samples/analyze/beta_snippets_test.py | 4 +++- .../samples/analyze/video_detect_faces_beta.py | 1 + .../samples/analyze/video_detect_person_beta.py | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py b/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py index d7d119147e7a..09aa67c235a4 100644 --- a/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py +++ b/packages/google-cloud-videointelligence/samples/analyze/beta_snippets_test.py @@ -14,15 +14,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -from six.moves.urllib.request import urlopen import os import uuid from google.cloud import storage import pytest +from six.moves.urllib.request import urlopen import beta_snippets + POSSIBLE_TEXTS = [ "Google", "SUR", @@ -129,6 +130,7 @@ def test_detect_text_gcs(capsys): out, _ = capsys.readouterr() assert 'Text' in out + # Flaky InvalidArgument @pytest.mark.flaky(max_runs=3, min_passes=1) def test_track_objects(capsys): diff --git a/packages/google-cloud-videointelligence/samples/analyze/video_detect_faces_beta.py b/packages/google-cloud-videointelligence/samples/analyze/video_detect_faces_beta.py index 0c83bc67f233..49eb20dd0d62 100644 --- a/packages/google-cloud-videointelligence/samples/analyze/video_detect_faces_beta.py +++ b/packages/google-cloud-videointelligence/samples/analyze/video_detect_faces_beta.py @@ -14,6 +14,7 @@ # [START video_detect_faces_beta] import io + from google.cloud import videointelligence_v1p3beta1 as videointelligence diff --git a/packages/google-cloud-videointelligence/samples/analyze/video_detect_person_beta.py b/packages/google-cloud-videointelligence/samples/analyze/video_detect_person_beta.py index 5b5a567e3a16..a7afd34cab49 100644 --- a/packages/google-cloud-videointelligence/samples/analyze/video_detect_person_beta.py +++ b/packages/google-cloud-videointelligence/samples/analyze/video_detect_person_beta.py @@ -14,6 +14,7 @@ # [START video_detect_person_beta] import io + from google.cloud import videointelligence_v1p3beta1 as videointelligence