summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/clitest.py1
-rw-r--r--test/test.py9
2 files changed, 7 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..ef1c768 100644
--- a/test/test.py
+++ b/test/test.py
@@ -15,7 +15,7 @@ import tempfile
15import unittest 15import unittest
16import subprocess 16import subprocess
17 17
18VERBOSITY = 3 18VERBOSITY = 15
19 19
20clean = glob.glob('clean*') 20clean = glob.glob('clean*')
21clean.sort() 21clean.sort()
@@ -25,8 +25,9 @@ dirty.sort()
25FILE_LIST = zip(clean, dirty) 25FILE_LIST = zip(clean, dirty)
26 26
27try: # PDF render processing 27try: # 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
31except ImportError: 32except ImportError:
32 FILE_LIST.remove(('clean é.pdf', 'dirty é.pdf')) 33 FILE_LIST.remove(('clean é.pdf', 'dirty é.pdf'))
@@ -42,6 +43,10 @@ try: # file format exclusively managed by exiftool
42except OSError: 43except OSError:
43 pass # None for now 44 pass # None for now
44 45
46#FILE_LIST.remove(('clean é.pdf', 'dirty é.pdf'))
47#FILE_LIST.remove(('clean é.tar', 'dirty é.tar'))
48FILE_LIST.remove(('clean é.tar.gz', 'dirty é.tar.gz'))
49#FILE_LIST.remove(('clean é.tar.bz2', 'dirty é.tar.bz2'))
45 50
46class MATTest(unittest.TestCase): 51class MATTest(unittest.TestCase):
47 ''' 52 '''