diff --git a/backend/documents/tests.py b/backend/documents/tests.py index 135eac25..2f0bd37c 100644 --- a/backend/documents/tests.py +++ b/backend/documents/tests.py @@ -12,7 +12,7 @@ def setUp(self): self.upload_end_point = f"{base}upload/" # Use an existing test PDF file or create a dummy file self.valid_pdf = SimpleUploadedFile( - "test.pdf", b"file_content", content_type="application/pdf" + "test.pdf", b"file_content", content_type="multipart/form-data" ) self.non_valid_file = SimpleUploadedFile( "test.txt", b"file_content", content_type="text/plain"