1818import os
1919import uuid
2020
21- import beta_snippets
2221from google .cloud import storage
2322import pytest
24- from flaky import flaky
2523
24+ import beta_snippets
2625
2726POSSIBLE_TEXTS = [
2827 "Google" ,
@@ -114,7 +113,7 @@ def test_annotation_to_storage_streaming(capsys, video_path, bucket):
114113
115114
116115# Flaky timeout
117- @flaky (max_runs = 3 , min_passes = 1 )
116+ @pytest . mark . flaky (max_runs = 3 , min_passes = 1 )
118117def test_detect_text (capsys ):
119118 in_file = "./resources/googlework_tiny.mp4"
120119 beta_snippets .video_detect_text (in_file )
@@ -123,15 +122,15 @@ def test_detect_text(capsys):
123122
124123
125124# Flaky timeout
126- @flaky (max_runs = 3 , min_passes = 1 )
125+ @pytest . mark . flaky (max_runs = 3 , min_passes = 1 )
127126def test_detect_text_gcs (capsys ):
128127 in_file = "gs://python-docs-samples-tests/video/googlework_tiny.mp4"
129128 beta_snippets .video_detect_text_gcs (in_file )
130129 out , _ = capsys .readouterr ()
131130 assert 'Text' in out
132131
133-
134- @pytest .mark .slow
132+ # Flaky InvalidArgument
133+ @pytest .mark .flaky ( max_runs = 3 , min_passes = 1 )
135134def test_track_objects (capsys ):
136135 in_file = "./resources/googlework_tiny.mp4"
137136 beta_snippets .track_objects (in_file )
@@ -154,7 +153,7 @@ def test_track_objects_gcs():
154153
155154
156155# Flaky Gateway
157- @flaky (max_runs = 3 , min_passes = 1 )
156+ @pytest . mark . flaky (max_runs = 3 , min_passes = 1 )
158157def test_streaming_automl_classification (capsys , video_path ):
159158 project_id = os .environ ["GCLOUD_PROJECT" ]
160159 model_id = "VCN6363999689846554624"
0 commit comments