From f1eb4184a886f82faff377f34a7e82c3bf5be544 Mon Sep 17 00:00:00 2001 From: Yu-Han Liu Date: Tue, 12 Sep 2023 09:07:18 -0700 Subject: [PATCH] remove pytest.mark.slow --- videointelligence/samples/analyze/analyze_test.py | 5 ----- videointelligence/samples/analyze/beta_snippets_test.py | 6 ------ videointelligence/samples/labels/labels_test.py | 1 - videointelligence/samples/quickstart/quickstart_test.py | 1 - videointelligence/samples/shotchange/shotchange_test.py | 1 - 5 files changed, 14 deletions(-) diff --git a/videointelligence/samples/analyze/analyze_test.py b/videointelligence/samples/analyze/analyze_test.py index 291fdfd16dfa..2632d65d033b 100644 --- a/videointelligence/samples/analyze/analyze_test.py +++ b/videointelligence/samples/analyze/analyze_test.py @@ -37,28 +37,24 @@ ] -@pytest.mark.slow def test_analyze_shots(capsys): analyze.analyze_shots("gs://cloud-samples-data/video/gbikes_dinosaur.mp4") out, _ = capsys.readouterr() assert "Shot 1:" in out -@pytest.mark.slow def test_analyze_labels(capsys): analyze.analyze_labels("gs://cloud-samples-data/video/cat.mp4") out, _ = capsys.readouterr() assert "label description: cat" in out -@pytest.mark.slow def test_analyze_labels_file(capsys): analyze.analyze_labels_file("resources/googlework_tiny.mp4") out, _ = capsys.readouterr() assert "label description" in out -@pytest.mark.slow def test_analyze_explicit_content(capsys): try_count = 0 while try_count < 3: @@ -75,7 +71,6 @@ def test_analyze_explicit_content(capsys): break -@pytest.mark.slow def test_speech_transcription(capsys): analyze.speech_transcription("gs://cloud-samples-data/video/googlework_short.mp4") out, _ = capsys.readouterr() diff --git a/videointelligence/samples/analyze/beta_snippets_test.py b/videointelligence/samples/analyze/beta_snippets_test.py index e54bd43f05ff..6749f1ebc747 100644 --- a/videointelligence/samples/analyze/beta_snippets_test.py +++ b/videointelligence/samples/analyze/beta_snippets_test.py @@ -69,7 +69,6 @@ def delete_bucket(): delete_bucket() -@pytest.mark.slow def test_speech_transcription(capsys): beta_snippets.speech_transcription( "gs://python-docs-samples-tests/video/googlework_short.mp4", timeout=240 @@ -78,7 +77,6 @@ def test_speech_transcription(capsys): assert "cultural" in out -@pytest.mark.slow @pytest.mark.flaky(max_runs=3, min_passes=1) def test_detect_labels_streaming(capsys, video_path): beta_snippets.detect_labels_streaming(video_path) @@ -87,7 +85,6 @@ def test_detect_labels_streaming(capsys, video_path): assert "cat" in out -@pytest.mark.slow def test_detect_shot_change_streaming(capsys, video_path): beta_snippets.detect_shot_change_streaming(video_path) @@ -96,7 +93,6 @@ def test_detect_shot_change_streaming(capsys, video_path): # Flaky ServiceUnavailable -@pytest.mark.slow @pytest.mark.flaky(max_runs=3, min_passes=1) def test_track_objects_streaming(capsys, video_path): beta_snippets.track_objects_streaming(video_path) @@ -105,7 +101,6 @@ def test_track_objects_streaming(capsys, video_path): assert "cat" in out -@pytest.mark.slow @pytest.mark.flaky(max_runs=3, min_passes=1) def test_detect_explicit_content_streaming(capsys, video_path): beta_snippets.detect_explicit_content_streaming(video_path) @@ -114,7 +109,6 @@ def test_detect_explicit_content_streaming(capsys, video_path): assert "Time" in out -@pytest.mark.slow @pytest.mark.flaky(max_runs=3, min_passes=1) def test_annotation_to_storage_streaming(capsys, video_path, bucket): output_uri = "gs://{}".format(bucket.name) diff --git a/videointelligence/samples/labels/labels_test.py b/videointelligence/samples/labels/labels_test.py index 4a9d64b8461e..f1b4e307882c 100644 --- a/videointelligence/samples/labels/labels_test.py +++ b/videointelligence/samples/labels/labels_test.py @@ -19,7 +19,6 @@ import labels -@pytest.mark.slow def test_feline_video_labels(capsys): labels.analyze_labels("gs://cloud-samples-data/video/cat.mp4") out, _ = capsys.readouterr() diff --git a/videointelligence/samples/quickstart/quickstart_test.py b/videointelligence/samples/quickstart/quickstart_test.py index f1052ef7dd7c..51312191ae18 100644 --- a/videointelligence/samples/quickstart/quickstart_test.py +++ b/videointelligence/samples/quickstart/quickstart_test.py @@ -19,7 +19,6 @@ import quickstart -@pytest.mark.slow def test_quickstart(capsys): quickstart.run_quickstart() out, _ = capsys.readouterr() diff --git a/videointelligence/samples/shotchange/shotchange_test.py b/videointelligence/samples/shotchange/shotchange_test.py index 550b09aa532e..dece2194220d 100644 --- a/videointelligence/samples/shotchange/shotchange_test.py +++ b/videointelligence/samples/shotchange/shotchange_test.py @@ -19,7 +19,6 @@ import shotchange -@pytest.mark.slow def test_shots_dino(capsys): shotchange.analyze_shots("gs://cloud-samples-data/video/gbikes_dinosaur.mp4") out, _ = capsys.readouterr()