Skip to content

Commit

Permalink
test: use psycopg over psycopg2 for sqlalchemy tests (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Dec 20, 2024
1 parent a4298c3 commit 8c5baf7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion projects/pgai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,4 @@ dev-dependencies = [
"testcontainers==4.8.1",
"build==1.2.2.post1",
"twine==5.1.1",
"psycopg2==2.9.10",
]
2 changes: 1 addition & 1 deletion projects/pgai/tests/vectorizer/extensions/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def initialized_engine(
Returns:
Engine: Configured SQLAlchemy engine
"""
engine = create_engine(postgres_container.get_connection_url())
engine = create_engine(postgres_container.get_connection_url(driver="psycopg"))
with engine.connect() as conn:
conn.execute(text("CREATE EXTENSION IF NOT EXISTS ai CASCADE;"))
conn.commit()
Expand Down
16 changes: 0 additions & 16 deletions projects/pgai/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c5baf7

Please sign in to comment.