Skip to content

Commit f17247e

Browse files
Null terminate extension to simulate the real world
1 parent 20b1a52 commit f17247e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cardinal_pythonlib/tests/extract_text_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def test_attachment_converted(self) -> None:
700700
mock_attachment = mock.Mock(
701701
# null termination seen in the real world
702702
# https://github.com/TeamMsgExtractor/msg-extractor/issues/464
703-
extension=".docx",
703+
extension=".docx\x00",
704704
data=BytesIO(docx).read(),
705705
)
706706
mock_msgfile = mock.Mock(

0 commit comments

Comments
 (0)