Skip to content

Commit

Permalink
more test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Sep 20, 2023
1 parent be6c0f8 commit dfd922e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def func(arg1):
def test_asset_with_config_schema():
@asset(config_schema={"foo": int})
def my_asset(context):
assert context.op_config["foo"] == 5
assert context.op_execution_context.op_config["foo"] == 5

materialize_to_memory([my_asset], run_config={"ops": {"my_asset": {"config": {"foo": 5}}}})

Expand All @@ -115,7 +115,7 @@ def my_asset(context):
def test_multi_asset_with_config_schema():
@multi_asset(outs={"o1": AssetOut()}, config_schema={"foo": int})
def my_asset(context):
assert context.op_config["foo"] == 5
assert context.op_execution_context.op_config["foo"] == 5

materialize_to_memory([my_asset], run_config={"ops": {"my_asset": {"config": {"foo": 5}}}})

Expand Down

0 comments on commit dfd922e

Please sign in to comment.