diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/clitest.py | 1 | ||||
| -rw-r--r-- | test/test.py | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/clitest.py b/test/clitest.py index bc0a7fd..cfda322 100644 --- a/test/clitest.py +++ b/test/clitest.py | |||
| @@ -21,7 +21,6 @@ class TestRemovecli(test.MATTest): | |||
| 21 | def test_remove(self): | 21 | def test_remove(self): |
| 22 | '''make sure that the cli remove all compromizing meta''' | 22 | '''make sure that the cli remove all compromizing meta''' |
| 23 | for _, dirty in self.file_list: | 23 | for _, dirty in self.file_list: |
| 24 | subprocess.call(['../mat', dirty]) | ||
| 25 | current_file = mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True) | 24 | current_file = mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True) |
| 26 | self.assertTrue(current_file.is_clean()) | 25 | self.assertTrue(current_file.is_clean()) |
| 27 | 26 | ||
diff --git a/test/test.py b/test/test.py index 675c4f9..f2970ff 100644 --- a/test/test.py +++ b/test/test.py | |||
| @@ -15,7 +15,7 @@ import tempfile | |||
| 15 | import unittest | 15 | import unittest |
| 16 | import subprocess | 16 | import subprocess |
| 17 | 17 | ||
| 18 | VERBOSITY = 3 | 18 | VERBOSITY = 5 |
| 19 | 19 | ||
| 20 | clean = glob.glob('clean*') | 20 | clean = glob.glob('clean*') |
| 21 | clean.sort() | 21 | clean.sort() |
| @@ -25,8 +25,9 @@ dirty.sort() | |||
| 25 | FILE_LIST = zip(clean, dirty) | 25 | FILE_LIST = zip(clean, dirty) |
| 26 | 26 | ||
| 27 | try: # PDF render processing | 27 | try: # PDF render processing |
| 28 | import poppler | ||
| 29 | import cairo | 28 | import cairo |
| 29 | import gi | ||
| 30 | from gi.repository import Poppler | ||
| 30 | import pdfrw | 31 | import pdfrw |
| 31 | except ImportError: | 32 | except ImportError: |
| 32 | FILE_LIST.remove(('clean é.pdf', 'dirty é.pdf')) | 33 | FILE_LIST.remove(('clean é.pdf', 'dirty é.pdf')) |
