File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/components/preprocessors Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ def test_split_multiple_documents(sample_text):
188188 splits_by_source [doc .meta ["source_id" ]].append (doc .meta ["split_id" ])
189189
190190 # Each parent document should have split_ids starting from 0
191- for source_id , split_ids in splits_by_source .items ():
192- assert split_ids == list (range (len (split_ids ))), f"Split IDs for { source_id } should be sequential from 0"
191+ for split_ids in splits_by_source .values ():
192+ assert split_ids == list (range (len (split_ids )))
193193
194194
195195def test_split_only_headers ():
@@ -314,8 +314,8 @@ def test_split_id_sequentiality_primary_and_secondary(sample_text):
314314 splits_by_source [doc .meta ["source_id" ]].append (doc .meta ["split_id" ])
315315
316316 # Each parent document should have split_ids starting from 0
317- for source_id , split_ids in splits_by_source .items ():
318- assert split_ids == list (range (len (split_ids ))), f"Split IDs for { source_id } should be sequential from 0"
317+ for split_ids in splits_by_source .values ():
318+ assert split_ids == list (range (len (split_ids )))
319319
320320
321321def test_secondary_split_with_overlap ():
You can’t perform that action at this time.
0 commit comments