HomeElementl

[schedule/sensor testing 1/n] [RFC] build_schedule_context

Description

[schedule/sensor testing 1/n] [RFC] build_schedule_context

Summary: (Depends on https://dagster.phacility.com/D7940) This diff provides a convenient fxn for constructing a schedule context. Right now, it is just a function, but there is an argument for making it a context manager that defaults the instance to instance.get().

Test Plan:
Convert unit test decorators to use build_schedule_context instead of directly constructing ScheduleExecutionContext

API reference:

Screen Shot 2021-05-18 at 2.32.47 PM.png (666×1 px, 96 KB)

Reviewers: sandyryza, alangenfeld, prha

Reviewed By: prha

Differential Revision: https://dagster.phacility.com/D7942

Details

Provenance
Chris DeCarolis <cdguitar817@gmail.com>Authored on May 17 2021, 7:07 PM
Reviewer
prha
Differential Revision
D7942: [schedule/sensor testing 1/n] [RFC] build_schedule_context
Parents
R1:d86b3dfde4b5: Fix asserts
Branches
Unknown
Tags
Unknown