diff options
| author | jvoisin | 2018-06-04 22:54:01 +0200 |
|---|---|---|
| committer | jvoisin | 2018-06-04 23:20:30 +0200 |
| commit | 6a1b0b31f0fbfa59a78a8b9f4f07bf9ed3f91cdf (patch) | |
| tree | fdb8e31a7ad5bf6982cb8c11a2012205a0cfe14f /tests/test_climat2.py | |
| parent | 4ebf9754f84e28eb73a09df0f788b5be80c9c73e (diff) | |
Add more typing and use mypy in the CI
Diffstat (limited to 'tests/test_climat2.py')
| -rw-r--r-- | tests/test_climat2.py | 7 |
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 | ||
| 70 | class 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 | |||
| 70 | class TestGetMeta(unittest.TestCase): | 77 | class 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'], |
