Skip to content

Commit

Permalink
add typeengine check as well
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor committed Oct 18, 2024
1 parent a98c4c0 commit 8f7035a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/flytekit/unit/core/test_type_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -3702,3 +3702,6 @@ def test_structured_dataset_mismatch():
transformer = TypeEngine.get_transformer(StructuredDataset)
with pytest.raises(TypeTransformerFailedError):
transformer.to_literal(FlyteContext.current_context(), df, StructuredDataset, TypeEngine.to_literal_type(StructuredDataset))

with pytest.raises(TypeTransformerFailedError):
TypeEngine.to_literal(FlyteContext.current_context(), df, StructuredDataset, TypeEngine.to_literal_type(StructuredDataset))

0 comments on commit 8f7035a

Please sign in to comment.