summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2015-12-08 15:39:33 +0100
committerjvoisin2015-12-08 15:39:33 +0100
commit80244ecd1fa49d1147e64ff8ffc9b310e635be34 (patch)
treeea214ef9ce761b80d9650f4ff2efa20593db75c3
parenta13203d62c17bd25de0942d131ff7257d0188f1d (diff)
Add a PDF-specific test
-rw-r--r--test/clitest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/clitest.py b/test/clitest.py
index ccac675..195defa 100644
--- a/test/clitest.py
+++ b/test/clitest.py
@@ -35,6 +35,14 @@ class TestRemovecli(test.MATTest):
35 current_file = mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True) 35 current_file = mat.create_class_file(dirty, False, add2archive=True, low_pdf_quality=True)
36 self.assertTrue(current_file.is_clean()) 36 self.assertTrue(current_file.is_clean())
37 37
38 def test_remove_fileformat_specific_options(self):
39 """ test metadata removal with fileformat-specific options """
40 for _, dirty in self.file_list: # can't be faster than that :/
41 if dirty.endswith('pdf'):
42 subprocess.call([MAT_PATH, '--low-pdf-quality', dirty])
43 current_file = mat.create_class_file(dirty, False, low_pdf_quality=True)
44 self.assertTrue(current_file.is_clean())
45
38 def test_remove_empty(self): 46 def test_remove_empty(self):
39 """Test removal with clean files\n""" 47 """Test removal with clean files\n"""
40 for clean, _ in self.file_list: 48 for clean, _ in self.file_list: