Skip to content

Commit 41305de

Browse files
committed
Improved test [skip ci]
1 parent 8a3dadb commit 41305de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_psycopg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def setup_method(self):
2525

2626
def test_vector(self):
2727
embedding = Vector([1.5, 2, 3])
28-
conn.execute('INSERT INTO psycopg_items (embedding) VALUES (%s), (NULL)', (embedding,))
28+
embedding2 = None
29+
conn.execute('INSERT INTO psycopg_items (embedding) VALUES (%s), (%s)', (embedding, embedding2))
2930

3031
res = conn.execute('SELECT embedding FROM psycopg_items ORDER BY id').fetchall()
3132
assert res[0][0] == embedding

0 commit comments

Comments
 (0)