diff --git a/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py b/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py index b97e6f69938f3..7dc1adbcef023 100644 --- a/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py +++ b/python_modules/dagster/dagster_tests/core_tests/test_op_invocation.py @@ -1520,7 +1520,7 @@ def throws_error(context): @asset def no_error(context): - assert context.alias == "no_error" + assert context.asset_key.to_user_string() == "no_error" no_error(ctx)