Skip to content

Commit

Permalink
Improve ConfigWorkflow doctest referncing task_a
Browse files Browse the repository at this point in the history
The doctest was referencing a task that was never used in the tasks and
also did not refernce `task_a`. So `task_b` was renamed to `task_b` to
solve these issues.
  • Loading branch information
agoscinski committed Jan 27, 2025
1 parent 945f76c commit 3b608c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sirocco/parsing/_yaml_data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class ConfigWorkflow(BaseModel):
... tasks:
... - task_a:
... tasks:
... - task_b:
... - task_a:
... plugin: shell
... data:
... available:
Expand All @@ -548,7 +548,7 @@ class ConfigWorkflow(BaseModel):
>>> wf = ConfigWorkflow(
... cycles=[ConfigCycle(minimal_cycle={"tasks": [ConfigCycleTask(task_a={})]})],
... tasks=[ConfigShellTask(task_b={"plugin": "shell"})],
... tasks=[ConfigShellTask(task_a={"plugin": "shell"})],
... data=ConfigData(
... available=[ConfigAvailableData(foo={})],
... generated=[ConfigGeneratedData(bar={})],
Expand Down

0 comments on commit 3b608c6

Please sign in to comment.