more metadata #32

This commit is contained in:
jonaswinkler committed 2020-12-08 16:09:47 +01:00
1 parent ad527fe97c
commit 0028fde2fd
7 files changed
+118 -15

No files matched your search

+1 -1
View File
@@ -496,7 +496,7 @@ class TestDocumentApi(DirectoriesMixin, APITestCase):
async_task.assert_not_called()
def test_get_metadata(self):
doc = Document.objects.create(title="test", filename="file.pdf", mime_type="image/png")
doc = Document.objects.create(title="test", filename="file.pdf", mime_type="image/png", archive_checksum="A")
shutil.copy(os.path.join(os.path.dirname(__file__), "samples", "documents", "thumbnails", "0000001.png"), doc.source_path)
shutil.copy(os.path.join(os.path.dirname(__file__), "samples", "simple.pdf"), doc.archive_path)