mime type handling

This commit is contained in:
Jonas Winkler committed 2020-11-20 13:31:03 +01:00
1 parent bd45a804a7
commit 41650f20f4
19 files changed
+163 -146

No files matched your search

@@ -13,9 +13,12 @@ class TestDocument(TestCase):
title="Title",
content="content",
checksum="checksum",
mime_type="application/pdf"
)
file_path = document.source_path
thumb_path = document.thumbnail_path
with mock.patch("documents.signals.handlers.os.unlink") as mock_unlink:
document.delete()
mock_unlink.assert_any_call(file_path)