From 771c8aa0777a61ced07db97830b51c57edd78efa Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Wed, 16 Jul 2025 14:38:23 -0400 Subject: [PATCH] fix: return dict from 'status_task_batched' when testing Otherwise this breaks `taskgraph test-action-callback` as we're expecting a dict rather than `NoneType` throughout the code base. --- src/taskgraph/util/taskcluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taskgraph/util/taskcluster.py b/src/taskgraph/util/taskcluster.py index cebc4e5da..fe275662f 100644 --- a/src/taskgraph/util/taskcluster.py +++ b/src/taskgraph/util/taskcluster.py @@ -339,7 +339,7 @@ def status_task_batched(task_ids, use_proxy=False): """ if testing: logger.info(f"Would have gotten status for {len(task_ids)} tasks.") - return + return {} endpoint = liburls.api(get_root_url(use_proxy), "queue", "v1", "tasks/status") statuses = {} continuation_token = None