Merge remote-tracking branch 'origin/main' into feat/queue-based-graph-engine

This commit is contained in:
-LAN- 2025-09-09 15:49:09 +08:00
commit a1e8ac4c96
No known key found for this signature in database
GPG Key ID: 6BA0D108DED011FF
1 changed files with 6 additions and 1 deletions

View File

@ -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