Skip to content

Commit 0e29abb

Browse files
committed
added tests for Task/non-Task eq check
1 parent d7f4daa commit 0e29abb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pydra/compose/tests/test_python_equivalence.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,13 @@ def Square(in_val):
237237
outputs = Square(in_val=2.0)()
238238
assert outputs.squared == 4.0
239239
assert outputs.cubed == 8.0
240+
241+
242+
def test_non_task_eq():
243+
"""Checks tasks can be compared to non-tasks"""
244+
245+
@python.define
246+
def Square(in_val):
247+
return in_val**2, in_val**3
248+
249+
assert Square(in_val=1) != 42

0 commit comments

Comments
 (0)