feat: discover existing workflow objects

This commit is contained in:
lda
2026-09-02 05:21:48 +07:00 Verified
parent ef79eae6bf
commit 143e70bcf7
13 changed files with 345 additions and 2 deletions
+8
View File
@@ -54,8 +54,16 @@ async def test_http_app_calls_authors_saves_deploys_and_runs(tmp_path) -> None:
validation = await graph.validate()
artifact = await graph.save(version=1, title="HTTP client proof")
run = await artifact.run({})
artifacts = await app.artifacts(query="http_client_proof")
deployments = await app.deployments()
runs = await app.runs(status="completed", limit=25)
assert validation.ok is True
assert artifact.ref == ArtifactRef("http_client_proof", 1)
assert run.status == "completed"
assert run.output == {"value": "hello"}
assert [(item.artifact_id, item.version) for item in artifacts.items] == [
("http_client_proof", 1)
]
assert deployments[0].artifact_id == "http_client_proof"
assert runs.items[0].run_id == run.run_id