summaryrefslogtreecommitdiff
path: root/test/clitest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/clitest.py')
-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: