def test_detect_text_gcs():
    in_file = 'gs://python-docs-samples-tests/video/googlework_short.mp4'
    text_annotations = beta_snippets.video_detect_text_gcs(in_file)

    text_exists = False
    for text_annotation in text_annotations:
        for possible_text in POSSIBLE_TEXTS:
            if possible_text.upper() in text_annotation.text.upper():
                text_exists = True
    assert text_exists
def test_detect_text_gcs():
    in_file = 'gs://python-docs-samples-tests/video/googlework_short.mp4'
    text_annotations = beta_snippets.video_detect_text_gcs(in_file)

    text_exists = False
    for text_annotation in text_annotations:
        for possible_text in POSSIBLE_TEXTS:
            if possible_text.upper() in text_annotation.text.upper():
                text_exists = True
    assert text_exists
def test_detect_text_gcs(capsys):
    in_file = "gs://python-docs-samples-tests/video/googlework_tiny.mp4"
    beta_snippets.video_detect_text_gcs(in_file)
    out, _ = capsys.readouterr()
    assert "Text" in out