summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorjvoisin2013-01-20 03:57:17 +0100
committerjvoisin2013-01-20 03:57:17 +0100
commitac4110fbfc60b112836d0b279ae07ea9a779b16d (patch)
tree2649b954ddb7fcfa15c5a7167907a27398008732 /test
parent8427e8f4aff71a40ea6ba920608c38edd7ee6905 (diff)
preliminary support of gtk3 (one test fails for PDF)
Diffstat (limited to 'test')
-rw-r--r--test/clitest.py1
-rw-r--r--test/test.py5
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
15import unittest 15import unittest
16import subprocess 16import subprocess
17 17
18VERBOSITY = 3 18VERBOSITY = 5
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'))