mirror of https://github.com/langgenius/dify.git
Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine
This commit is contained in:
commit
a1e8ac4c96
|
|
@ -296,7 +296,12 @@ class TestBatchCreateSegmentToIndexTask:
|
|||
from extensions.ext_database import db
|
||||
|
||||
# Check that segments were created
|
||||
segments = db.session.query(DocumentSegment).filter_by(document_id=document.id).all()
|
||||
segments = (
|
||||
db.session.query(DocumentSegment)
|
||||
.filter_by(document_id=document.id)
|
||||
.order_by(DocumentSegment.position)
|
||||
.all()
|
||||
)
|
||||
assert len(segments) == 3
|
||||
|
||||
# Verify segment content and metadata
|
||||
|
|
|
|||
Loading…
Reference in New Issue