Skip to content

Commit b57b0fb

Browse files
committed
fix tests
Signed-off-by: Kevin Su <[email protected]>
1 parent d630f45 commit b57b0fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/flytekit/unit/core/test_generice_idl_type_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2704,7 +2704,7 @@ def test_union_in_dataclass():
27042704
lv = tf.to_literal(ctx, o, pt, lt)
27052705
ot = tf.to_python_value(ctx, lv=lv, expected_python_type=pt)
27062706

2707-
return o == ot
2707+
assert o == ot
27082708
assert o.result.schema.remote_path == ot.result.schema.remote_path
27092709
assert o.result.number == ot.result.number
27102710
assert o.schema.remote_path == ot.schema.remote_path

tests/flytekit/unit/core/test_type_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ def test_union_in_dataclass():
27132713
lv = tf.to_literal(ctx, o, pt, lt)
27142714
ot = tf.to_python_value(ctx, lv=lv, expected_python_type=pt)
27152715

2716-
return o == ot
2716+
assert o == ot
27172717
assert o.result.schema.remote_path == ot.result.schema.remote_path
27182718
assert o.result.number == ot.result.number
27192719
assert o.schema.remote_path == ot.schema.remote_path

0 commit comments

Comments
 (0)