Skip to content

Commit

Permalink
global: format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
audrium committed Feb 10, 2023
1 parent c17cfee commit 5cc8fd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion reana/reana_dev/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,6 @@ def _return_missing_output_files(component: str, workflow_name: str) -> List[str
elif "failed" in status:
run_statistics["failed"].append(workflow_name)
elif "finished" in status or "stopped" in status:

if not _verify_log_output(component, workflow_name):
run_statistics["failed"].append(workflow_name)
continue
Expand Down
14 changes: 7 additions & 7 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_shorten_component_name():
"""Tests for shorten_component_name()."""
from reana.reana_dev.utils import shorten_component_name

for (name_long, name_short) in (
for name_long, name_short in (
("", ""),
("reana", "reana"),
("reana-job-controller", "r-j-controller"),
Expand All @@ -31,7 +31,7 @@ def test_get_expected_output_filenames_for_example():
"""Tests for get_expected_output_filenames_for_example()."""
from reana.reana_dev.run import get_expected_output_filenames_for_example

for (example, output) in (
for example, output in (
("", ("plot.png",)),
("reana-demo-helloworld", ("greetings.txt",)),
("reana-demo-root6-roofit", ("plot.png",)),
Expand All @@ -44,7 +44,7 @@ def test_get_expected_log_message_for_example():
"""Tests for get_expected_log_messages_for_example()."""
from reana.reana_dev.run import get_expected_log_messages_for_example

for (example, output) in (
for example, output in (
("", ("job:",)),
("reana-demo-helloworld", ("Parameters: inputfile=",)),
):
Expand Down Expand Up @@ -89,7 +89,7 @@ def test_select_components():
REPO_LIST_CLUSTER,
)

for (input_value, output_expected) in (
for input_value, output_expected in (
# regular operation:
(["reana-job-controller"], ["reana-job-controller"]),
(["reana-job-controller", "reana"], ["reana-job-controller", "reana, "]),
Expand Down Expand Up @@ -123,7 +123,7 @@ def test_select_workflow_engines():
"""Tests for select_workflow_engines()."""
from reana.reana_dev.run import select_workflow_engines

for (input_value, output_expected) in (
for input_value, output_expected in (
# regular workflow engines:
(["cwl"], ["cwl"]),
(["serial"], ["serial"]),
Expand All @@ -142,7 +142,7 @@ def test_find_standard_component_name():
"""Tests for find_standard_component_name()."""
from reana.reana_dev.utils import find_standard_component_name

for (input_value, output_expected) in (
for input_value, output_expected in (
("reana", "reana"),
("r-server", "reana-server"),
("r-j-controller", "reana-job-controller"),
Expand All @@ -169,7 +169,7 @@ def test_construct_workflow_name():
"""Tests for construct_workflow_name()."""
from reana.reana_dev.run import construct_workflow_name

for (input_value, output_expected) in (
for input_value, output_expected in (
(("reana", "cwl", "kubernetes"), "reana-cwl-kubernetes"),
(
("reana-demo-root6-roofit", "yadage", "htcondorcern"),
Expand Down

0 comments on commit 5cc8fd4

Please sign in to comment.