Hey everyone, we have a flow that creates another ...
# ask-community
b
Hey everyone, we have a flow that creates another flow and reacts to its results using
create_flow_run
and
get_task_run_result
. We unit tested the parent flow using mocks to simulate the possible results of the child flow. However, it would be great to have a basic integration test where we ideally only mock the outside dependencies like sql and api calls. Do you have any ideas how to achieve that?
k
Hey @Bastian Röhrig, a bit confused since these are technically API calls right? But I think the answer here is you either need to mock them, or spin up server to test because they are reliant on having a backend to execute.
b
Ah yeah you're right, I meant API calls as in 3rd Party (non prefect) API-calls. We do have tests using mocks, however just a smoke test that we don't have issues in the real world would be nice. It makes a lot of sense that we would need a backend for that though. Thank you :)
👍 1