summaryrefslogtreecommitdiff
path: root/tests/test_corrupted_files.py
diff options
context:
space:
mode:
authorjvoisin2018-10-23 16:14:21 +0200
committerjvoisin2018-10-23 16:22:11 +0200
commitf1a071d460507fd1bb1721deafd2a8d9f88f5b05 (patch)
treee17067895ef1fc9b91b00c0ba56d2e86975ceef1 /tests/test_corrupted_files.py
parent38df679a88a19db3a4a82fdb8e20a42c9a53d1a1 (diff)
Implement lightweight cleaning for png and tiff
Diffstat (limited to 'tests/test_corrupted_files.py')
-rw-r--r--tests/test_corrupted_files.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_corrupted_files.py b/tests/test_corrupted_files.py
index 82c6c3b..181d4d2 100644
--- a/tests/test_corrupted_files.py
+++ b/tests/test_corrupted_files.py
@@ -194,6 +194,13 @@ class TestCorruptedFiles(unittest.TestCase):
194 images.JPGParser('./tests/data/clean.jpg') 194 images.JPGParser('./tests/data/clean.jpg')
195 os.remove('./tests/data/clean.jpg') 195 os.remove('./tests/data/clean.jpg')
196 196
197 def test_png_lightweight(self):
198 return
199 shutil.copy('./tests/data/dirty.torrent', './tests/data/clean.png')
200 p = images.PNGParser('./tests/data/clean.png')
201 self.assertTrue(p.remove_all())
202 os.remove('./tests/data/clean.png')
203
197 def test_avi(self): 204 def test_avi(self):
198 try: 205 try:
199 video._get_ffmpeg_path() 206 video._get_ffmpeg_path()