Skip to content

Commit

Permalink
FIX: Too much indentation
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <[email protected]>
  • Loading branch information
shnizzedy and effigies authored Nov 18, 2024
1 parent a693e12 commit 7223914
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions nipype/pipeline/plugins/tests/test_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ def test_callback_gantt(tmp_path: Path, plugin: str) -> None:
with open(log_filename, "r") as _f:
loglines = _f.readlines()

# test missing duration
first_line = json.loads(loglines[0])
if "duration" in first_line:
del first_line["duration"]
loglines[0] = f"{json.dumps(first_line)}\n"

# test duplicate timestamp warning
loglines.append(loglines[-1])
# test missing duration
first_line = json.loads(loglines[0])
if "duration" in first_line:
del first_line["duration"]
loglines[0] = f"{json.dumps(first_line)}\n"

# test duplicate timestamp warning
loglines.append(loglines[-1])

with open(log_filename, "w") as _f:
_f.write("".join(loglines))
Expand Down

0 comments on commit 7223914

Please sign in to comment.