From 6a1b0b31f0fbfa59a78a8b9f4f07bf9ed3f91cdf Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 4 Jun 2018 22:54:01 +0200 Subject: Add more typing and use mypy in the CI --- tests/test_climat2.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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): 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'], -- cgit v1.3