Skip to content

Commit c6fb53b

Browse files
committed
Improved test
1 parent aa7214e commit c6fb53b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_sqlalchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def test_inspect(self):
220220
assert isinstance(columns[1]['type'], Vector)
221221

222222
def test_literal_binds(self):
223-
sql = select(Item).order_by(Item.embedding.l2_distance([1, 2, 3])).compile(compile_kwargs={'literal_binds': True})
223+
sql = select(Item).order_by(Item.embedding.l2_distance([1, 2, 3])).compile(engine, compile_kwargs={'literal_binds': True})
224224
assert "embedding <-> '[1.0,2.0,3.0]'" in str(sql)
225225

226226
@pytest.mark.asyncio

0 commit comments

Comments
 (0)