added mimetype/file extension to tesseract parser test

This commit is contained in:
tvh 2023-11-02 18:57:26 +01:00
parent 7308c858b3
commit dbd1d46f9b
2 changed files with 2 additions and 6 deletions

View File

@ -1636,10 +1636,6 @@ class TestDocumentApi(DirectoriesMixin, DocumentConsumeDelayMixin, APITestCase):
self.assertIsNone(overrides.tag_ids)
def test_upload_zipfile(self):
import logging
LOGGER = logging.getLogger(__name__)
self.consume_file_mock.return_value = celery.result.AsyncResult(
id=str(uuid.uuid4()),
)
@ -1652,7 +1648,7 @@ class TestDocumentApi(DirectoriesMixin, DocumentConsumeDelayMixin, APITestCase):
"/api/documents/post_document/",
{"document": f},
)
LOGGER.info(response.content)
self.assertEqual(response.status_code, status.HTTP_200_OK)
def test_upload_empty_metadata(self):

View File

@ -7,7 +7,7 @@ max-line-length = 88
[tool:pytest]
DJANGO_SETTINGS_MODULE=paperless.settings
#addopts = --pythonwarnings=all --cov --cov-report=html --cov-report=xml --numprocesses auto --maxprocesses=16 --durations=50 --log-cli-level=INFO
addopts = --pythonwarnings=all --cov --cov-report=html --cov-report=xml --numprocesses auto --maxprocesses=16 --durations=50 --log-cli-level=INFO
env =
PAPERLESS_DISABLE_DBHANDLER=true