Skip to content

Commit

Permalink
Update test_doc_parser.py
Browse files Browse the repository at this point in the history
Drop filename check
  • Loading branch information
JSv4 authored Oct 23, 2024
1 parent 0b11f7a commit 3596e35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions opencontractserver/tests/test_doc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,6 @@ def test_pdf_thumbnail_extraction(self, mock_convert_from_bytes):
# Check that the icon was created
self.assertTrue(self.doc.icon, "Icon was not created.")

# Use assertRegex for better error messages
self.assertRegex(
self.doc.icon.name,
r"\d+_icon_[a-zA-Z0-9]+\.jpg",
msg=f"Icon name '{self.doc.icon.name}' does not match the expected pattern.",
)

# Open the saved image and check its properties
with self.doc.icon.open("rb") as icon_file:
saved_image = Image.open(icon_file)
Expand Down

0 comments on commit 3596e35

Please sign in to comment.