mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-13 23:29:04 +00:00
Added docx parsing
This commit is contained in:
13
spec/DocxParser_spec.py
Normal file
13
spec/DocxParser_spec.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from unittest import TestCase
|
||||
from parsing import DocxParser
|
||||
|
||||
|
||||
class DocxParserTest(TestCase):
|
||||
|
||||
def test_parse_content(self):
|
||||
|
||||
parser = DocxParser([], 1000)
|
||||
|
||||
info = parser.parse("test_files/docx1.docx")
|
||||
|
||||
self.assertEqual(len(info["content"]), 1000)
|
||||
BIN
spec/test_files/docx1.docx
Normal file
BIN
spec/test_files/docx1.docx
Normal file
Binary file not shown.
Reference in New Issue
Block a user