https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Son Giang

06/29/2022, 11:39 AM
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

chris

06/29/2022, 6:20 PM
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

Son Giang

07/01/2022, 8:49 AM
Testing with a dummy job feels clumsy to me. Should I create an issue for improve in testing op with partition_time_window?
c

chris

07/01/2022, 5:04 PM
Ended up making an issue around this a few days ago: https://github.com/dagster-io/dagster/issues/8687, feel free to upvote!
👍 2
2 Views