Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1901b9c

Browse files
committed
Improved test [skip ci]
1 parente19df46 commit1901b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/test_sqlalchemy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ def psycopg_connect(dbapi_connection, connection_record):
4343
psycopg_async_type_engine=create_async_engine('postgresql+psycopg://localhost/pgvector_python_test')
4444

4545
@event.listens_for(psycopg_async_type_engine.sync_engine,"connect")
46-
defconnect(dbapi_connection,connection_record):
46+
defpsycopg_async_connect(dbapi_connection,connection_record):
4747
frompgvector.psycopgimportregister_vector_async
4848
dbapi_connection.run_async(register_vector_async)
4949

5050
asyncpg_engine=create_async_engine('postgresql+asyncpg://localhost/pgvector_python_test')
5151
asyncpg_type_engine=create_async_engine('postgresql+asyncpg://localhost/pgvector_python_test')
5252

5353
@event.listens_for(asyncpg_type_engine.sync_engine,"connect")
54-
defconnect(dbapi_connection,connection_record):
54+
defasyncpg_connect(dbapi_connection,connection_record):
5555
frompgvector.asyncpgimportregister_vector
5656
dbapi_connection.run_async(register_vector)
5757

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp