Skip to content

Commit ce73536

Browse files
author
Alan Christie
committed
fix: Add name to workflow and running-workflow
1 parent 34f1d54 commit ce73536

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/wapi_adapter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def create_workflow(self, *, workflow_definition: dict[str, Any]) -> dict[str, A
212212
next_id: int = len(workflow) + 1
213213
workflow_definition_id: str = _WORKFLOW_DEFINITION_ID_FORMAT.format(id=next_id)
214214
workflow[workflow_definition_id] = workflow_definition
215+
workflow["name"] = "test-workflow"
215216

216217
with open(_WORKFLOW_PICKLE_FILE, "wb") as pickle_file:
217218
Pickler(pickle_file).dump(workflow)
@@ -237,6 +238,7 @@ def create_running_workflow(
237238
next_id: int = len(running_workflow) + 1
238239
running_workflow_id: str = _RUNNING_WORKFLOW_ID_FORMAT.format(id=next_id)
239240
record = {
241+
"name": "test-running-workflow",
240242
"user_id": user_id,
241243
"user_api_token": "123456789",
242244
"done": False,

workflow/workflow_abc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def get_workflow(
8484
# If present this should return:
8585
# {
8686
# "workflow": {
87+
# "name": "workflow-name",
8788
# "steps": [
8889
# {
8990
# "name": "step-name"
@@ -106,6 +107,7 @@ def get_running_workflow(
106107
# Should return:
107108
# {
108109
# "running_workflow": {
110+
# "name": "workflow-name",
109111
# "user_id": "alan",
110112
# "user_api_token": "123456789",
111113
# "done": False,

0 commit comments

Comments
 (0)