summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2018-06-04 22:54:01 +0200
committerjvoisin2018-06-04 23:20:30 +0200
commit6a1b0b31f0fbfa59a78a8b9f4f07bf9ed3f91cdf (patch)
treefdb8e31a7ad5bf6982cb8c11a2012205a0cfe14f /tests
parent4ebf9754f84e28eb73a09df0f788b5be80c9c73e (diff)
Add more typing and use mypy in the CI
Diffstat (limited to '')
-rw-r--r--tests/test_climat2.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py
index fd72278..a119884 100644
--- a/tests/test_climat2.py
+++ b/tests/test_climat2.py
@@ -67,6 +67,13 @@ class TestCleanMeta(unittest.TestCase):
67 os.remove('./tests/data/clean.jpg') 67 os.remove('./tests/data/clean.jpg')
68 68
69 69
70class TestIsSupported(unittest.TestCase):
71 def test_pdf(self):
72 proc = subprocess.Popen(['./mat2', '--show', './tests/data/dirty.pdf'],
73 stdout=subprocess.PIPE)
74 stdout, _ = proc.communicate()
75 self.assertNotIn(b"isn't supported", stdout)
76
70class TestGetMeta(unittest.TestCase): 77class TestGetMeta(unittest.TestCase):
71 def test_pdf(self): 78 def test_pdf(self):
72 proc = subprocess.Popen(['./mat2', '--show', './tests/data/dirty.pdf'], 79 proc = subprocess.Popen(['./mat2', '--show', './tests/data/dirty.pdf'],