diff --git a/src/documents/tests/test_api.py b/src/documents/tests/test_api.py index 7e239720a..cf71cda2d 100644 --- a/src/documents/tests/test_api.py +++ b/src/documents/tests/test_api.py @@ -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): diff --git a/src/setup.cfg b/src/setup.cfg index 4c10d85d2..36bf96cd8 100644 --- a/src/setup.cfg +++ b/src/setup.cfg @@ -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