Skip to content

Commit 57b6a61

Browse files
committed
Improved asyncpg test [skip ci]
1 parent 057806e commit 57b6a61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_asyncpg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ async def test_bit(self):
5959

6060
await register_vector(conn)
6161

62-
embedding = asyncpg.BitString.from_int(5, length=3)
62+
embedding = asyncpg.BitString('101')
6363
await conn.execute("INSERT INTO asyncpg_items (embedding) VALUES ($1), (NULL)", embedding)
6464

6565
res = await conn.fetch("SELECT * FROM asyncpg_items ORDER BY id")
66+
assert res[0]['embedding'].as_string() == '101'
6667
assert res[0]['embedding'].to_int() == 5
6768
assert res[1]['embedding'] is None
6869

0 commit comments

Comments
 (0)