mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-04-20 10:36:46 +00:00
22 lines
516 B
Python
22 lines
516 B
Python
from unittest import TestCase
|
|
from parsing import SpreadSheetParser
|
|
|
|
|
|
class PdfParserTest(TestCase):
|
|
|
|
def test_parse_content_xls(self):
|
|
|
|
parser = SpreadSheetParser([], 1500, "test_files/")
|
|
|
|
info = parser.parse("test_files/xls1.xls")
|
|
|
|
self.assertEqual(len(info["content"]), 1500)
|
|
|
|
def test_parse_content_xlsx(self):
|
|
|
|
parser = SpreadSheetParser([], 1500, "test_files/")
|
|
|
|
info = parser.parse("test_files/xlsx1.xlsx")
|
|
|
|
self.assertEqual(len(info["content"]), 1500)
|