Commit 806d1b13 authored by Amrita Deb's avatar Amrita Deb
Browse files

Merge branch 'rohlfing-master-patch-02807' into 'master'

Update test_watermark.py

See merge request !19
parents 7c86314c c18cdeab
......@@ -40,6 +40,8 @@ class MainTest(unittest.TestCase):
def test_watermark_pdfs(self):
import watermark
expected_files = ['123456_Nachname_w.pdf', '456789_Lastname_w.pdf']
# Prepare parameter
in_dir = './pdfs'
dpi = 250
......@@ -54,4 +56,6 @@ class MainTest(unittest.TestCase):
watermark.main(["-i", in_dir, "-o", out_dir,
"-t", tmp_dir, "--dpi", str(dpi)])
self.assertTrue(True)
created_files = os.listdir(out_dir)
created_files.sort()
self.assertEqual(expected_files, created_files)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment