mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-24 00:45:57 +00:00
test(storage): update postgres extra expectation
This commit is contained in:
@@ -94,12 +94,15 @@ class TestHarnessPackaging:
|
|||||||
"psycopg-pool>=3.3.0",
|
"psycopg-pool>=3.3.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
def test_workspace_pyproject_forwards_postgres_extra_to_harness(self):
|
def test_workspace_pyproject_forwards_postgres_extra_to_storage_packages(self):
|
||||||
pyproject_path = Path(__file__).resolve().parents[1] / "pyproject.toml"
|
pyproject_path = Path(__file__).resolve().parents[1] / "pyproject.toml"
|
||||||
data = tomllib.loads(pyproject_path.read_text())
|
data = tomllib.loads(pyproject_path.read_text())
|
||||||
|
|
||||||
optional_dependencies = data["project"]["optional-dependencies"]
|
optional_dependencies = data["project"]["optional-dependencies"]
|
||||||
assert optional_dependencies["postgres"] == ["deerflow-harness[postgres]"]
|
assert optional_dependencies["postgres"] == [
|
||||||
|
"deerflow-harness[postgres]",
|
||||||
|
"deerflow-storage[postgres]",
|
||||||
|
]
|
||||||
|
|
||||||
def test_postgres_missing_dependency_messages_recommend_package_extra(self):
|
def test_postgres_missing_dependency_messages_recommend_package_extra(self):
|
||||||
assert "deerflow-harness[postgres]" in POSTGRES_INSTALL
|
assert "deerflow-harness[postgres]" in POSTGRES_INSTALL
|
||||||
|
|||||||
Reference in New Issue
Block a user