def index(): all_images = Image.load_all_images(es) images = Image.get_images_info_for_display(all_images) return render_template('index.html', images=images)
def test_load_all_images(self): time.sleep(10) assert (len(Image.load_all_images(es, index=self.index_name)) == 3)