(self, project_dir)
| 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 = """ |
| 4246 | schema_version: "1.0" |
| 4247 | workflow: |
| 4248 | id: "list-test" |
| 4249 | name: "List Test" |
| 4250 | version: "1.0.0" |
| 4251 | steps: |
| 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 ===== |
nothing calls this directly
no test coverage detected