From 16ddf942bef08d726f20b124f781c299b61c371f Mon Sep 17 00:00:00 2001 From: Alexander Goscinski Date: Mon, 27 Jan 2025 09:43:59 +0100 Subject: [PATCH] Improve `ConfigWorkflow` doctest referencing `task_a` 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. --- src/sirocco/parsing/_yaml_data_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sirocco/parsing/_yaml_data_models.py b/src/sirocco/parsing/_yaml_data_models.py index d5329da..4a6530c 100644 --- a/src/sirocco/parsing/_yaml_data_models.py +++ b/src/sirocco/parsing/_yaml_data_models.py @@ -643,7 +643,7 @@ class ConfigWorkflow(BaseModel): ... tasks: ... - task_a: ... tasks: - ... - task_b: + ... - task_a: ... plugin: shell ... data: ... available: @@ -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")