Is there a good pattern for testing in isolation t...
# announcements
s
Is there a good pattern for testing in isolation that a resource can be initialized? i.e. "when given some default context, it successfully produces an instance of the resource"?
it looks like i can do this by calling the
resource_fn
parameter of the resource definition, but i need to provide an
InitResourceContext
, which seems to involve a lot of manual setup. is there a helper for generating context objects, or a better way to test resource initialization?
a
ya this is a known gap that we are working on. You can see progress here https://github.com/dagster-io/dagster/blob/master/python_modules/dagster/dagster/core/execution/build_resources.py#L49-L56 we are still iterating on the API but it should be “released” in a
0.11.X
release in the coming months
🙏 1
cc @chris
👍 1