def test_verify_image(path): tmp_path = path/'tmp' os.makedirs(tmp_path, exist_ok=True) verify_image(path/'train'/'3'/'867.png',False, dest=tmp_path, max_size=27) img = PIL.Image.open(tmp_path/'867.png') assert img.height == 27 and img.width == 27 shutil.rmtree(tmp_path)
def test_verify_image(path): this_tests(verify_image) tmp_path = path / "tmp" os.makedirs(tmp_path, exist_ok=True) verify_image(path / "train" / "3" / "867.png", 0, False, dest=tmp_path, max_size=27) img = PIL.Image.open(tmp_path / "867.png") assert img.height == 27 and img.width == 27 shutil.rmtree(tmp_path)
def test_verify_image(path): this_tests(verify_image) tmp_path = path/'tmp' os.makedirs(tmp_path, exist_ok=True) verify_image(path/'train'/'3'/'867.png', 0, False, dest=tmp_path, max_size=27) img = PIL.Image.open(tmp_path/'867.png') assert img.height == 27 and img.width == 27 shutil.rmtree(tmp_path)