Stabilize test_client_search ranking assertion

This commit is contained in:
Yiorgis Gozadinos 2026-05-14 14:37:27 +03:00
parent d76c645862
commit 704bea6f4a
No known key found for this signature in database
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View file

@ -13,6 +13,7 @@ wheels/
# tests
.coverage*
evaluations/evaluations/data/
evaluations/scripts/
tests/data/
.pytest_cache/
.ruff_cache/

File diff suppressed because one or more lines are too long

View file

@ -736,7 +736,7 @@ async def test_client_search(temp_db_path):
assert first_result.document_id == doc1.id
# Test search with different query
ml_results = await client.search("machine learning data", limit=2)
ml_results = await client.search("machine learning algorithms", limit=2)
assert len(ml_results) > 0
# Verify first result is from the machine learning document (doc2)