MCPcopy Create free account
hub / github.com/github/spec-kit / test_list_after_execution

Method test_list_after_execution

tests/test_workflows.py:4242–4262  ·  view source on GitHub ↗
(self, project_dir)

Source from the content-addressed store, hash-verified

4240 assert engine.list_runs() == []
4241
4242 def test_list_after_execution(self, project_dir):
4243 from specify_cli.workflows.engine import WorkflowEngine, WorkflowDefinition
4244
4245 yaml_str = """
4246schema_version: "1.0"
4247workflow:
4248 id: "list-test"
4249 name: "List Test"
4250 version: "1.0.0"
4251steps:
4252 - id: step-one
4253 type: shell
4254 run: "echo test"
4255"""
4256 definition = WorkflowDefinition.from_string(yaml_str)
4257 engine = WorkflowEngine(project_dir)
4258 engine.execute(definition)
4259
4260 runs = engine.list_runs()
4261 assert len(runs) == 1
4262 assert runs[0]["workflow_id"] == "list-test"
4263
4264
4265# ===== Workflow Registry Tests =====

Callers

nothing calls this directly

Calls 4

executeMethod · 0.95
list_runsMethod · 0.95
WorkflowEngineClass · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected