Format nested HTML lists without duplicating items (#1286)

This commit is contained in:
Mohammad Hijjawi
2026-10-01 06:48:14 -04:00
committed by GitHub
parent 3c7a548923
commit 3f33fb2918
3 changed files with 50 additions and 7 deletions
+2 -2
View File
@@ -316,7 +316,7 @@ class TestPipeline(unittest.TestCase):
text = self.client.get(f"textract?file={Utils.PATH}/article.pdf").json()
# Check length of text is as expected
self.assertEqual(len(text), 2471)
self.assertEqual(len(text), 2472)
# Check invalid URLs
for url in ["http://192.168.1.1/path", "http://127.0.0.1/path", "http://invalid", "/etc/config", "/tmp/txtai-1/test"]:
@@ -331,7 +331,7 @@ class TestPipeline(unittest.TestCase):
path = Utils.PATH + "/article.pdf"
texts = self.client.post("batchtextract", json=[path, path]).json()
self.assertEqual((len(texts[0]), len(texts[1])), (2471, 2471))
self.assertEqual((len(texts[0]), len(texts[1])), (2472, 2472))
def testTextToSpeech(self):
"""