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
Kevin Kho
09/03/2021, 2:08 PM
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
Bastian Röhrig
09/03/2021, 2:22 PM
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 :)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.