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 2, 2023
1 parent ec30791 commit 13eba1b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion reana_client/cli/cwl_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ def cwl_runner(ctx, quiet, outdir, basedir, processfile, jobfile, access_token):
response = get_workflow_logs(workflow_id, access_token)
logs = response["logs"]
if logs != first_logs:

logging.error(logs[len(first_logs) :])
first_logs = logs

Expand Down
1 change: 1 addition & 0 deletions reana_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def get_workflow_duration(workflow: Dict) -> Optional[int]:
:return: The duration of the workflow in seconds or ``None`` if the starting
time is not present.
"""

# FIXME: Use datetime.fromisoformat when moving to Python 3.7 or higher
def fromisoformat(date_string):
return datetime.strptime(date_string, "%Y-%m-%dT%H:%M:%S")
Expand Down
1 change: 0 additions & 1 deletion tests/test_cli_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def test_ping_ok():
"reana_client.api.client.current_rs_api_client",
make_mock_api_client("reana-server")(mock_response, mock_http_response),
):

result = runner.invoke(cli, ["ping", "-t", reana_token])
message = "Authenticated as: John Doe <[email protected]>"
assert message in result.output
Expand Down

0 comments on commit 13eba1b

Please sign in to comment.