From 41905ae25dee59d11e7c1a6f7d8d0dacd976f651 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Fri, 19 Aug 2022 20:19:00 +1200 Subject: [PATCH] Fix docs (formatting) --- cwltool/workflow.py | 7 +++++-- tests/test_reqs_hints.py | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cwltool/workflow.py b/cwltool/workflow.py index 9d56b0b8f..50c181d7f 100644 --- a/cwltool/workflow.py +++ b/cwltool/workflow.py @@ -182,8 +182,11 @@ def _fix_hints_and_requirements( hints_or_requirements: List[CWLObjectType], requirements_or_hints_to_evaluate: List[str], ) -> None: - """Internal function to iterate the hints or requirements of steps - provided and evaluate the ones that exist in the parent process. + """Fix hints and requirements of a workflow eagerly. + + Internal function to iterate the hints or requirements + of steps provided and evaluate the ones that exist in + the parent process. """ for hint_or_requirement in hints_or_requirements: for key, value in hint_or_requirement.items(): diff --git a/tests/test_reqs_hints.py b/tests/test_reqs_hints.py index 54ae12d38..d39132bb5 100644 --- a/tests/test_reqs_hints.py +++ b/tests/test_reqs_hints.py @@ -8,6 +8,7 @@ def test_workflow_reqs_are_evaluated_eagerly_default_args() -> None: """Test that a Workflow process will evaluate the requirements eagerly. + Uses the default input values. This means that workflow steps, such as Expression and Command Line Tools @@ -33,6 +34,7 @@ def test_workflow_reqs_are_evaluated_eagerly_default_args() -> None: def test_workflow_reqs_are_evaluated_eagerly_provided_inputs() -> None: """Test that a Workflow process will evaluate the requirements eagerly. + Passes inputs via a job file. This means that workflow steps, such as Expression and Command Line Tools