Currently, I’m using `context.partition_time_windo...
# ask-community
s
Currently, I’m using
context.partition_time_window
in my op. How can I test the op? The
build_op_context
don’t have any
partition_time_window
params
🤖 1
Also cannot pass
PartitionConfig
to
build_op_context
also
c
Yea the op testing APIs when using partitions could definitely be more extensive. One way you could test this op is with a dummy job that uses the expected partitions, and then using
execute_in_process
with the partition key argument. Docs on execute_in_process: https://docs.dagster.io/_apidocs/jobs#dagster.JobDefinition.execute_in_process
s
Testing with a dummy job feels clumsy to me. Should I create an issue for improve in testing op with partition_time_window?
c
Ended up making an issue around this a few days ago: https://github.com/dagster-io/dagster/issues/8687, feel free to upvote!
👍 2