Differential D8751 Diff 41254 python_modules/dagster/dagster_tests/core_tests/engine_tests/test_step_handler.py
Changeset View
Changeset View
Standalone View
Standalone View
python_modules/dagster/dagster_tests/core_tests/engine_tests/test_step_handler.py
Show All 21 Lines | with instance_for_test() as instance: | ||||
instance_ref=None, | instance_ref=None, | ||||
) | ) | ||||
ctx = StepHandlerContext( | ctx = StepHandlerContext( | ||||
instance=instance, | instance=instance, | ||||
execute_step_args=args, | execute_step_args=args, | ||||
pipeline_run=run, | pipeline_run=run, | ||||
) | ) | ||||
reloaded_ctx = StepHandlerContext.deserialize(instance, ctx.serialize()) | assert ctx.execute_step_args == args | ||||
assert reloaded_ctx.execute_step_args == args | assert ctx.pipeline_run == run | ||||
assert reloaded_ctx.pipeline_run == run |