def test_main(cloud_config, capsys): input_uri = 'gs://{}/speech/audio.flac'.format(cloud_config.storage_bucket) main(input_uri, 'FLAC', 16000) out, err = capsys.readouterr() assert re.search(r'how old is the Brooklyn Bridge', out, re.DOTALL | re.I)
def test_main(cloud_config, capsys): input_uri = 'gs://{}/speech/audio.flac'.format(cloud_config.storage_bucket) output_uri = 'gs://{}/speech/audio.txt'.format(cloud_config.storage_bucket) main(input_uri, output_uri, 'FLAC', 16000) out, err = capsys.readouterr() assert '[]\n' == out