Skip to content

Commit 55bab79

Browse files
committed
replaced task_fields with get_fields in new tests
1 parent f2c184f commit 55bab79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydra/compose/tests/test_python_fields.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_function_arg_add_help():
5858
def func(a: int) -> int:
5959
return a * 2
6060

61-
assert task_fields(func).a.help == "an int"
61+
assert get_fields(func).a.help == "an int"
6262

6363

6464
def test_interface_wrap_function_with_default():
@@ -454,7 +454,7 @@ def TestFunc1(a: A) -> None:
454454
print(a)
455455

456456
outputs = TestFunc1(a=A(x=7))()
457-
assert not task_fields(outputs)
457+
assert not get_fields(outputs)
458458

459459

460460
def test_no_outputs2():
@@ -465,7 +465,7 @@ def TestFunc2(a: A):
465465
print(a)
466466

467467
outputs = TestFunc2(a=A(x=7))()
468-
assert not task_fields(outputs)
468+
assert not get_fields(outputs)
469469

470470

471471
def test_no_outputs_fail():

0 commit comments

Comments
 (0)