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 30, 2025
1 parent 911b3e0 commit 6ccfdd7
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 @@ -611,7 +611,7 @@ class ConfigWorkflow(BaseModel):
... tasks:
... - task_a:
... tasks:
... - task_b:
... - task_a:
... plugin: shell
... data:
... available:
Expand All @@ -636,7 +636,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 6ccfdd7

Please sign in to comment.