Skip to content

Commit

Permalink
Improve ConfigWorkflow doctest referencing 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 reference `task_a`. So `task_b` was renamed to `task_b` to
solve these issues.
  • Loading branch information
agoscinski committed Jan 31, 2025
1 parent f913fa4 commit 16ddf94
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 @@ -643,7 +643,7 @@ class ConfigWorkflow(BaseModel):
... tasks:
... - task_a:
... tasks:
... - task_b:
... - task_a:
... plugin: shell
... data:
... available:
Expand All @@ -664,7 +664,7 @@ class ConfigWorkflow(BaseModel):
... name="minimal",
... rootdir=Path("/location/of/config/file"),
... cycles=[ConfigCycle(minimal_cycle={"tasks": [ConfigCycleTask(task_a={})]})],
... tasks=[ConfigShellTask(task_b={"plugin": "shell"})],
... tasks=[ConfigShellTask(task_a={"plugin": "shell"})],
... data=ConfigData(
... available=[
... ConfigAvailableData(name="foo", type=DataType.FILE, src="foo.txt")
Expand Down

0 comments on commit 16ddf94

Please sign in to comment.