Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pydra/engine/tests/test_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,15 @@
# commented out to speed up testing
collect_messages(tmpdir / funky._checksum, message_path, ld_op="compact")
assert (tmpdir / funky._checksum / "messages.jsonld").exists()


def test_audit_resource():

Check warning on line 307 in pydra/engine/tests/test_audit.py

View check run for this annotation

Codecov / codecov/patch

pydra/engine/tests/test_audit.py#L307

Added line #L307 was not covered by tests

@python.define(outputs=["out"])
def AddVar(a: int, b: int) -> int:
return a + b

Check warning on line 311 in pydra/engine/tests/test_audit.py

View check run for this annotation

Codecov / codecov/patch

pydra/engine/tests/test_audit.py#L309-L311

Added lines #L309 - L311 were not covered by tests

task0 = AddVar(a=4, b=5)
outputs = task0(audit_flags=AuditFlag.RESOURCE)

Check warning on line 314 in pydra/engine/tests/test_audit.py

View check run for this annotation

Codecov / codecov/patch

pydra/engine/tests/test_audit.py#L313-L314

Added lines #L313 - L314 were not covered by tests

print(outputs)

Check warning on line 316 in pydra/engine/tests/test_audit.py

View check run for this annotation

Codecov / codecov/patch

pydra/engine/tests/test_audit.py#L316

Added line #L316 was not covered by tests
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies = [
"filelock >=3.0.0",
"fileformats >=0.15.0a7",
"platformdirs >=2",
"psutil >=5.9.0",
]
license = { file = "LICENSE" }
authors = [{ name = "Nipype developers", email = "[email protected]" }]
Expand Down Expand Up @@ -78,7 +79,6 @@ test = [
"fileformats-extras >=0.15.0a7",
"numpy >=1.26",
"pyld >=2.0",
"psutil >=5.9.0",
"python-dateutil >=2.8.2",
"tornado >=6.1",
]
Expand Down
Loading