Skip to content

Commit f532396

Browse files
committed
chore: update for test
- update postgres_db name for test in DEVELOPMENT.md - update postgres_port for test in utils.py - add psycopg[binary] for test using binary psycopg
1 parent 49a79cc commit f532396

File tree

4 files changed

+73
-3
lines changed

4 files changed

+73
-3
lines changed

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Start PostgreSQL/PGVector.
2121
docker run --rm -it --name pgvector-container \
2222
-e POSTGRES_USER=langchain \
2323
-e POSTGRES_PASSWORD=langchain \
24-
-e POSTGRES_DB=langchain \
24+
-e POSTGRES_DB=langchain_test \
2525
-p 6024:5432 pgvector/pgvector:pg16 \
2626
postgres -c log_statement=all
2727
```

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test = [
2525
"codespell>=2.4.1",
2626
"langchain-tests==0.3.7",
2727
"mypy>=1.15.0",
28+
"psycopg[binary]>=3,<4",
2829
"pytest>=8.3.4",
2930
"pytest-asyncio>=0.25.3",
3031
"pytest-cov>=6.0.0",

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
POSTGRES_PASSWORD = os.environ.get("POSTGRES_PASSWORD", "langchain")
1919
POSTGRES_DB = os.environ.get("POSTGRES_DB", "langchain_test")
2020

21-
POSTGRES_PORT = os.environ.get("POSTGRES_PORT", "5432")
21+
POSTGRES_PORT = os.environ.get("POSTGRES_PORT", "6024")
2222

2323
DSN = (
2424
f"postgresql://{POSTGRES_USER}:{POSTGRES_PASSWORD}@{POSTGRES_HOST}"

uv.lock

Lines changed: 70 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)