test(storage): update postgres extra expectation

This commit is contained in:
rayhpeng
2026-05-13 14:18:35 +08:00
parent def2a3ad79
commit d6b3a277a5
+5 -2
View File
@@ -94,12 +94,15 @@ class TestHarnessPackaging:
"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"
data = tomllib.loads(pyproject_path.read_text())
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):
assert "deerflow-harness[postgres]" in POSTGRES_INSTALL