Skip to content

Commit

Permalink
Fix: Update content type for valid PDF file
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Jan 5, 2024
1 parent 7c0f212 commit 0cc8b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/documents/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0cc8b53

Please sign in to comment.