Pranav Manjapra
08/28/2023, 11:43 PMcontext
. What's the best way to mock the context if the op accesses special context fields like context.op.name
and context.job_name
? build_op_context()
does not set these fields. Before the new python config and configurable resources, I used to pass MagicMock()
for the context as a workaround but now I get this error when I try to use MagicMock:
dagster._core.errors.DagsterInvalidInvocationError: Cannot provide resources in both context and kwargs
Any help would be appreciated, thanks!sandy
08/29/2023, 5:46 PMPranav Manjapra
08/30/2023, 9:27 AM