Bump a bit the coverage
This commit is contained in:
parent
c2ef35d1f1
commit
9f631a1bb1
@ -85,3 +85,9 @@ class TestCorruptedFiles(unittest.TestCase):
|
|||||||
with self.assertRaises(ValueError):
|
with self.assertRaises(ValueError):
|
||||||
audio.MP3Parser('./tests/data/clean.mp3')
|
audio.MP3Parser('./tests/data/clean.mp3')
|
||||||
os.remove('./tests/data/clean.mp3')
|
os.remove('./tests/data/clean.mp3')
|
||||||
|
|
||||||
|
def test_jpg(self):
|
||||||
|
shutil.copy('./tests/data/dirty.mp3', './tests/data/clean.jpg')
|
||||||
|
with self.assertRaises(ValueError):
|
||||||
|
images.JPGParser('./tests/data/clean.jpg')
|
||||||
|
os.remove('./tests/data/clean.jpg')
|
||||||
|
Loading…
Reference in New Issue
Block a user