mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-25 07:04:44 +08:00
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:
@@ -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/']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user