Add more typing and use mypy in the CI
This commit is contained in:
parent
4ebf9754f8
commit
6a1b0b31f0
8 changed files with 66 additions and 32 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue