Hi all I'm trying to mock out a context for an op...
# ask-community
z
Hi all I'm trying to mock out a context for an op I'm testing using
build_op_context
How do I specify tags in this function? Thanks!
🤖 1
a
the
tags
come from the
op
being executed, if you want to add some that are not on the definition you can use the
tag
function before invoking
my_op.tag({'foo': 'bar'})(context=built_context)
z
Perfect, thanks alex!