Skip to content

Commit 52d2928

Browse files
committed
Removed duplicate test task
1 parent 3a73b0b commit 52d2928

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

pydra/engine/tests/test_task.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,28 +1041,6 @@ def test_audit_shellcommandtask(tmpdir):
10411041
assert any(label_content)
10421042

10431043

1044-
def test_audit_task(tmpdir):
1045-
@mark.task
1046-
def testfunc(a: int, b: float = 0.1) -> ty.NamedTuple("Output", [("out", float)]):
1047-
return a + b
1048-
1049-
from glob import glob
1050-
1051-
funky = testfunc(a=2, audit_flags=AuditFlag.PROV, messengers=FileMessenger())
1052-
funky.cache_dir = tmpdir
1053-
funky()
1054-
message_path = tmpdir / funky.checksum / "messages"
1055-
# go through each jsonld file in message_path and check if the label field exists
1056-
for file in glob(str(message_path) + "/*.jsonld"):
1057-
with open(file, "r") as f:
1058-
data = json.load(f)
1059-
if "label" in data:
1060-
print(data)
1061-
assert True
1062-
1063-
# Write new test for shell command task
1064-
1065-
10661044
def test_audit_prov_messdir_1(tmpdir, use_validator):
10671045
"""customized messenger dir"""
10681046

0 commit comments

Comments
 (0)