mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
more metadata #32
This commit is contained in:
parent
ad527fe97c
commit
0028fde2fd
7 changed files with 118 additions and 15 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue