Hello. In Prefect2, I have a flow inside which I r...
# ask-community
m
Hello. In Prefect2, I have a flow inside which I run some deployments using
run_deployment()
. Now in my unit test, I want to mock
run_deployment
, but I don't know what to return. I tried returning a Future object, but didn't work because I do some
result.name, result.state_name
on the output of
run_deployment
. I appreciate any help here on how to construct a flow_run object for my run deployment mock. Thanks