Sterling Paramore
08/11/2022, 11:47 PMTypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object
Turns out I don’t need the op or anything, just have to build a context. Here’s the code `test_dummy.py`:
from dagster import build_op_context
def test_dummy_op():
context = build_op_context(resources={"FAVORITE_PIE": "Key Lime", "LEAST_FAVORITE_PIE": "Lack of"})
assert False
I see that this was originally reported last year, but they said it stopped when they moved from solids to ops, but that’s not the case here. If I use a context manager with build_op_context(…) as context:
, I don’t have the issue but it’s not clear whether that’s the expected testing pattern or not.
I’m using dagster 1.0.3 and pytest 7.1.2claire
08/12/2022, 4:48 PMclaire
08/12/2022, 4:48 PMDagster Bot
08/12/2022, 4:48 PMSterling Paramore
08/12/2022, 4:49 PM