def _load_image(name, test_env): logger.info('Loading image: {}'.format(name)) imgs = test_env.get_images_named(name) t = ImageLoadTask(user_id='0', image_id=imgs[0][0]) t.fetch_url = 'file://' + os.path.join(test_env.images_dir, imgs[0][1]['path']) t.execute()
def _load_image(name, test_env): logger.info("Loading image: {}".format(name)) imgs = test_env.get_images_named(name) t = ImageLoadTask(user_id="0", image_id=imgs[0][0]) t.fetch_url = "file://" + os.path.join(test_env.images_dir, imgs[0][1]["path"]) t.execute()
def _load_images(test_env): for img_id, path in test_env.image_exports(): t = ImageLoadTask(user_id="0", image_id=img_id) t.fetch_url = "file://" + path t.execute()
def load_images(self): self.test_env.image_exports() for img_id, path in self.test_env.image_exports(): t = ImageLoadTask(user_id='0', image_id=img_id) t.fetch_url = 'file://' + path t.execute()