Skip to content

Commit

Permalink
remove pytest.mark.slow
Browse files Browse the repository at this point in the history
  • Loading branch information
dizcology authored and leahecole committed Sep 15, 2023
1 parent 606c060 commit f1eb418
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions videointelligence/samples/analyze/analyze_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down
6 changes: 0 additions & 6 deletions videointelligence/samples/analyze/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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)

Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
1 change: 0 additions & 1 deletion videointelligence/samples/labels/labels_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion videointelligence/samples/quickstart/quickstart_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import quickstart


@pytest.mark.slow
def test_quickstart(capsys):
quickstart.run_quickstart()
out, _ = capsys.readouterr()
Expand Down
1 change: 0 additions & 1 deletion videointelligence/samples/shotchange/shotchange_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f1eb418

Please sign in to comment.