Ensure filling in "none" when a tag has not been found

This commit is contained in:
Wolf-Bastian Poettner
2020-02-17 20:59:17 +00:00
parent 7200f3c0c5
commit d2cc936392
2 changed files with 4 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ class TestDate(TestCase):
# Ensure that filename is properly generated
tmp = document.source_filename
self.assertEqual(document.generate_source_filename(),
"0000001.pdf")
"none-0000001.pdf")
document.create_source_directory()
Path(document.source_path).touch()