mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-13 15:19:05 +00:00
Added pdf & epub parsing
This commit is contained in:
13
spec/EbookParserTest.py
Normal file
13
spec/EbookParserTest.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from unittest import TestCase
|
||||
from parsing import EbookParser
|
||||
|
||||
|
||||
class EbookParserTest(TestCase):
|
||||
|
||||
def test_parse_content(self):
|
||||
|
||||
parser = EbookParser([], 1000)
|
||||
|
||||
info = parser.parse("test_files/epub1.epub")
|
||||
|
||||
self.assertEqual(len(info["content"]), 1000)
|
||||
Reference in New Issue
Block a user