misc fix: only 1 shall pass

This commit is contained in:
lda
2026-05-31 14:58:41 +07:00 Verified
parent a41ae88ea1
commit b9456e7f3e
2 changed files with 30 additions and 1 deletions
@@ -2,6 +2,8 @@ from __future__ import annotations
import asyncio
import pytest
from wf_artifacts import FileWorkflowArtifactStore, WorkflowDeployment
from ..test_support import local_temp_root
@@ -84,6 +86,29 @@ def test_workflow_surface_save_deployment_accepts_deployment_id_alias() -> None:
assert saved.id == "echo.personal"
def test_workflow_surface_save_deployment_rejects_id_and_deployment_id() -> None:
artifact_store = FileWorkflowArtifactStore(local_temp_root() / "surface_alias_xor")
h = handlers(artifact_store)
with pytest.raises(ValueError, match="mutually exclusive"):
asyncio.run(
h.save_deployment(
{
"id": "echo.personal",
"deployment_id": "echo.other",
"artifact_id": "echo",
"artifact_version": 1,
"bindings": [
{
"logical_source": "demo",
"concrete_source": "demo.personal",
}
],
}
)
)
def test_workflow_surface_lists_compact_deployment_summaries_and_inspects_detail() -> (
None
):