What's the right way to test IO managers that hand...
# ask-community
b
What's the right way to test IO managers that handle time window partitions?
🤖 1
s
This is a bug we’re aware of-- until it gets fixed, I ’d recommend just executing the op in testing as part of a job. That will ensure the
step_context
is present. Something like this:
Copy code
@asset(partitions_def=..., io_manager_key="foo")
def my_asset(context):
    ...

defs = Definitions(
    assets=[my_asset],
    jobs=[define_asset_job("my_job")],
    resources={"foo": <io manager>},
)

defs.get_job_def("my_job").execute_in_process()
👍 1
Heads up I created an issue for this: https://github.com/dagster-io/dagster/issues/15051
b
Thanks! I'll follow it so I know when I can swap over