mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-04-18 01:36:49 +00:00
17 lines
390 B
Python
17 lines
390 B
Python
from unittest import TestCase
|
|
from parsing import TikaFileParser
|
|
import os
|
|
|
|
dir_name = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
|
|
class EbookParserTest(TestCase):
|
|
|
|
def test_parse_content(self):
|
|
|
|
parser = TikaFileParser([], dir_name + "/test_files/", 1000)
|
|
|
|
info = parser.parse(dir_name + "/test_files/epub1.epub")
|
|
|
|
self.assertEqual(len(info["content"]), 1000)
|