changed the way public filenames (i.e., for download and exporting) are generated. #94

This commit is contained in:
jonaswinkler
2020-12-06 19:03:45 +01:00
parent a079c310b4
commit 28622d700d
6 changed files with 55 additions and 34 deletions

View File

@@ -66,6 +66,9 @@ class TestExportImport(DirectoriesMixin, TestCase):
def test_export_missing_files(self):
target = tempfile.mkdtemp()
call_command('document_exporter', target)
Document.objects.create(checksum="AAAAAAAAAAAAAAAAA", title="wow", filename="0000004.pdf", id=3, mime_type="application/pdf")
self.assertRaises(FileNotFoundError, call_command, 'document_exporter', target)
def test_duplicate_titles(self):
# TODO
pass