From 9cac001510a8714530a625326c78237e4e81d041 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Fri, 14 Jun 2024 19:18:56 -0500 Subject: [PATCH] fix mypy fail: `type "Optional[Any]" is not indexable` --- lib/galaxy_test/api/test_workflows.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/galaxy_test/api/test_workflows.py b/lib/galaxy_test/api/test_workflows.py index d29ba34de013..a4e46b32a623 100644 --- a/lib/galaxy_test/api/test_workflows.py +++ b/lib/galaxy_test/api/test_workflows.py @@ -5015,6 +5015,7 @@ def test_run_with_int_parameter(self): parameter_step = next( (step for step in invocation["steps"] if step.get("workflow_step_label") == "int_input"), None ) + assert parameter_step parameter_step_id = parameter_step["workflow_step_id"] assert invocation["input_step_parameters"][parameter_step_id]["parameter_value"] == 1