def test_google_vision_api_properties_extractor(): ext = GoogleVisionAPIPropertyExtractor(num_retries=5) filename = join(get_test_data_path(), 'image', 'apple.jpg') stim = ImageStim(filename) result = ext.transform(stim).to_df() assert '158, 13, 29' in result.columns assert np.isfinite(result['158, 13, 29'][0])
def test_google_vision_api_properties_extractor(): ext = GoogleVisionAPIPropertyExtractor(num_retries=5) filename = join(get_test_data_path(), 'image', 'apple.jpg') stim = ImageStim(filename) result = ext.transform(stim).to_df() assert '158, 13, 29' in result.columns assert np.isfinite(result['158, 13, 29'][0])