Skip to content

Commit 257eb3b

Browse files
committed
Simplified tests [skip ci]
1 parent bf9a0a4 commit 257eb3b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tests/test_sqlalchemy.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,6 @@ def connect(dbapi_connection, connection_record):
530530
@pytest.mark.asyncio
531531
@pytest.mark.skipif(sqlalchemy_version == 1, reason='Requires SQLAlchemy 2+')
532532
async def test_asyncpg_vector(self):
533-
import asyncpg
534-
535533
engine = create_async_engine('postgresql+asyncpg://localhost/pgvector_python_test')
536534
async_session = async_sessionmaker(engine, expire_on_commit=False)
537535

@@ -553,8 +551,6 @@ async def test_asyncpg_vector(self):
553551
@pytest.mark.asyncio
554552
@pytest.mark.skipif(sqlalchemy_version == 1, reason='Requires SQLAlchemy 2+')
555553
async def test_asyncpg_halfvec(self):
556-
import asyncpg
557-
558554
engine = create_async_engine('postgresql+asyncpg://localhost/pgvector_python_test')
559555
async_session = async_sessionmaker(engine, expire_on_commit=False)
560556

@@ -593,8 +589,6 @@ async def test_asyncpg_bit(self):
593589
@pytest.mark.asyncio
594590
@pytest.mark.skipif(sqlalchemy_version == 1, reason='Requires SQLAlchemy 2+')
595591
async def test_asyncpg_sparsevec(self):
596-
import asyncpg
597-
598592
engine = create_async_engine('postgresql+asyncpg://localhost/pgvector_python_test')
599593
async_session = async_sessionmaker(engine, expire_on_commit=False)
600594

0 commit comments

Comments
 (0)