1
0
Fork 0
mirror of synced 2025-07-03 03:47:20 +02:00

Add more typing and use mypy in the CI

This commit is contained in:
jvoisin 2018-06-04 22:54:01 +02:00
parent 4ebf9754f8
commit 6a1b0b31f0
8 changed files with 66 additions and 32 deletions

View file

@ -67,6 +67,13 @@ class TestCleanMeta(unittest.TestCase):
os.remove('./tests/data/clean.jpg')
class TestIsSupported(unittest.TestCase):
def test_pdf(self):
proc = subprocess.Popen(['./mat2', '--show', './tests/data/dirty.pdf'],
stdout=subprocess.PIPE)
stdout, _ = proc.communicate()
self.assertNotIn(b"isn't supported", stdout)
class TestGetMeta(unittest.TestCase):
def test_pdf(self):
proc = subprocess.Popen(['./mat2', '--show', './tests/data/dirty.pdf'],