diff --git a/python_modules/dagster/dagster_tests/asset_defs_tests/test_decorators.py b/python_modules/dagster/dagster_tests/asset_defs_tests/test_decorators.py index af0f87ffee40d..9f1e782a6cd71 100644 --- a/python_modules/dagster/dagster_tests/asset_defs_tests/test_decorators.py +++ b/python_modules/dagster/dagster_tests/asset_defs_tests/test_decorators.py @@ -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}}}}) @@ -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}}}})