Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zcemycl committed Nov 7, 2023
1 parent ac3a5ad commit 637d4fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ async def test_article_pgvector(test_session_orm):
sess.add_all(all_a)
await sess.commit()

stmt = select(d.article).order_by(
stmt = select(d.article.title).order_by(
d.article.factors.l2_distance(a1.factors)
)
a_res = (await sess.execute(stmt)).scalars().all()
for i in range(len(all_a)):
assert a_res[i].title == all_a[i].title
assert a_res[i] == all_a[i].title

0 comments on commit 637d4fd

Please sign in to comment.