1
0
Fork 0
mirror of synced 2025-07-04 04:17:29 +02:00

Improve problematic filenames support

This commit is contained in:
jvoisin 2018-10-22 16:45:30 +02:00
parent 5bc88faedf
commit 44f267a596
3 changed files with 32 additions and 22 deletions

View file

@ -37,6 +37,19 @@ class TestParameterInjection(unittest.TestCase):
self.assertEqual(meta['ModifyDate'], "2018:03:20 21:59:25")
os.remove('-ver')
def test_ffmpeg_injection(self):
try:
video._get_ffmpeg_path()
except RuntimeError:
raise unittest.SkipTest
shutil.copy('./tests/data/dirty.avi', './--output')
p = video.AVIParser('--output')
meta = p.get_meta()
print(meta)
self.assertEqual(meta['Software'], 'MEncoder SVN-r33148-4.0.1')
os.remove('--output')
class TestUnsupportedEmbeddedFiles(unittest.TestCase):
def test_odt_with_svg(self):