From c9caba79e296f9aaa8a7f8caf3e2dfdcc074bd57 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Thu, 31 Mar 2022 10:47:43 +0200 Subject: [PATCH] tests: fix validation of compute backends with CWL --- tests/test_validate_compute_backends.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_validate_compute_backends.py b/tests/test_validate_compute_backends.py index a68e048a..c0866a8b 100644 --- a/tests/test_validate_compute_backends.py +++ b/tests/test_validate_compute_backends.py @@ -137,7 +137,9 @@ def test_validate_compute_backends_cwl( """Validate compute backends for CWL workflows.""" reana_yaml = cwl_workflow_spec_loaded workflow_steps = reana_yaml["workflow"]["specification"]["$graph"] - workflow_steps[0]["steps"][0]["hints"] = [{"compute_backend": compute_backend}] + workflow_steps[0]["steps"][0]["hints"] = [ + {"class": "reana", "compute_backend": compute_backend} + ] if valid: validate_compute_backends(reana_yaml, supported_backends)