Skip to content

Commit c4f21af

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7ab3ddf commit c4f21af

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

pydra/engine/tests/test_task.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,13 +1009,11 @@ def testfunc(a: int, b: float = 0.1) -> ty.NamedTuple("Output", [("out", float)]
10091009
if "AssociatedWith" in data:
10101010
assert "testfunc" in data["Label"]
10111011

1012-
1013-
10141012
if "@type" in data:
10151013
if data["@type"] == "input":
10161014
assert None == data["Label"]
1017-
1018-
#assert data["Type"] == "input"
1015+
1016+
# assert data["Type"] == "input"
10191017

10201018
if "AssociatedWith" in data:
10211019
assert None == data["AssociatedWith"]
@@ -1039,7 +1037,7 @@ def test_audit_shellcommandtask(tmpdir):
10391037
shelly()
10401038
message_path = tmpdir / shelly.checksum / "messages"
10411039
# go through each jsonld file in message_path and check if the label field exists
1042-
1040+
10431041
command_content = []
10441042

10451043
for file in glob(str(message_path) + "/*.jsonld"):
@@ -1049,18 +1047,14 @@ def test_audit_shellcommandtask(tmpdir):
10491047
if "AssociatedWith" in data:
10501048
assert "shelly" in data["Label"]
10511049

1052-
1053-
10541050
if "@type" in data:
10551051
if data["@type"] == "input":
10561052
assert None == data["Label"]
1057-
10581053

10591054
if "Command" in data:
10601055
command_content.append(True)
10611056
assert "ls -l" == data["Command"]
10621057

1063-
10641058
assert any(command_content)
10651059

10661060

0 commit comments

Comments
 (0)