Skip to content

Commit

Permalink
make test a little better
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Jan 31, 2024
1 parent 4d2650a commit a3359a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ def test_instance_check():

@asset
def test_op_context_instance_check(context: AssetExecutionContext):
isinstance(context, OpExecutionContext)
assert isinstance(context, OpExecutionContext)

with pytest.raises(DeprecationWarning):
materialize([test_op_context_instance_check])

@asset
def test_asset_context_instance_check(context: AssetExecutionContext):
isinstance(context, AssetExecutionContext)
assert isinstance(context, AssetExecutionContext)

assert materialize([test_asset_context_instance_check]).success

0 comments on commit a3359a2

Please sign in to comment.