def test_detect_text():
    in_file = './resources/googlework_short.mp4'
    text_annotations = beta_snippets.video_detect_text(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():
    in_file = './resources/googlework_short.mp4'
    text_annotations = beta_snippets.video_detect_text(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(capsys):
    in_file = "./resources/googlework_tiny.mp4"
    beta_snippets.video_detect_text(in_file)
    out, _ = capsys.readouterr()
    assert "Text" in out