Skip to content

Commit 7aaa539

Browse files
committed
fixed up failure tests
1 parent e058dc7 commit 7aaa539

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pydra/compose/tests/test_python_fields.py

+8-10
Original file line numberDiff line numberDiff line change
@@ -461,19 +461,17 @@ def TestFunc3(a: A):
461461

462462
def test_only_one_output_fail():
463463

464-
@python.define(outputs=["out1", "out2"])
465-
def TestFunc4(a: A) -> A:
466-
return a
467-
468464
with pytest.raises(ValueError, match="Multiple outputs specified"):
469-
TestFunc4(a=A(x=7))()
470465

466+
@python.define(outputs=["out1", "out2"])
467+
def TestFunc4(a: A) -> A:
468+
return a
471469

472-
def test_incorrect_num_outputs_fail():
473470

474-
@python.define(outputs=["out1", "out2"])
475-
def TestFunc5(a: A) -> tuple[A, A, A]:
476-
return a, a, a
471+
def test_incorrect_num_outputs_fail():
477472

478473
with pytest.raises(ValueError, match="Length of the outputs"):
479-
TestFunc5(a=A(x=7))()
474+
475+
@python.define(outputs=["out1", "out2"])
476+
def TestFunc5(a: A) -> tuple[A, A, A]:
477+
return a, a, a

0 commit comments

Comments
 (0)