feat: creating mogodb and postgres mock instance in checkpoint test (#561)

* fix: using mongomock for the checkpoint test

* Add postgres mock setting to the unit test

* Added utils file of postgres_mock_utils

* fixed the runtime loading error of deerflow server
This commit is contained in:
Willem Jiang
2025-09-09 22:49:11 +08:00
committed by GitHub
parent 7138ba36bc
commit 4c17d88029
6 changed files with 463 additions and 151 deletions

View File

@@ -37,6 +37,7 @@ dependencies = [
"langchain-tavily<0.3",
"langgraph-checkpoint-mongodb>=0.1.4",
"langgraph-checkpoint-postgres==2.0.21",
"psycopg[binary]>=3.2.9",
]
[project.optional-dependencies]
@@ -48,6 +49,10 @@ test = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-asyncio>=1.0.0",
"pytest-cov>=6.0.0",
"asyncpg-stubs>=0.30.2",
"mongomock>=4.3.0",
"pytest-postgresql>=7.0.2",
]
[tool.uv]
@@ -78,3 +83,4 @@ extend-include = ["*.pyi"]
indent-style = "space"
line-ending = "auto"
exclude = ['^/build/']