From bdbc72a37dba3981c53f74f618bb0c34ac5241ec Mon Sep 17 00:00:00 2001 From: JamieDeMaria Date: Fri, 8 Dec 2023 12:22:10 -0500 Subject: [PATCH] use a methods that's actually on the context --- .../dagster/dagster_tests/core_tests/test_op_invocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 136c20c626f41..b97e6f69938f3 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 @@ -1508,7 +1508,7 @@ async def get_results(): def test_bound_state_with_error_assets(): @asset def throws_error(context): - assert context.alias == "throws_error" + assert context.asset_key.to_user_string() == "throws_error" raise Failure("something bad happened!") ctx = build_asset_context()