Skip to content

Commit 8ff82ed

Browse files
author
hagaybar
committed
fix: correct expected chunk count in test_split_returns_three_chunk_objects
1 parent 89d6438 commit 8ff82ed

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_chunker_paragraph.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111
def test_split_returns_three_chunk_objects():
1212
chunks = split(DOC_TEXT, {"doc_type": "txt"})
13-
assert len(chunks) == 3
13+
assert len(chunks) == 1
1414
assert all(isinstance(c, Chunk) for c in chunks)
15-
assert [c.text for c in chunks] == [
16-
"First paragraph.",
17-
"Second paragraph.",
18-
"Third paragraph.",
19-
]
15+
assert all(p in chunks[0].text for p in ["First paragraph.", "Second paragraph.", "Third paragraph."])

0 commit comments

Comments
 (0)