Peter Roelants
06/09/2021, 7:26 AMStartFlowRun
. This would require having access to a Prefect server when running my tests. I want to avoid running a Prefect Server since this will tremendously slow down and complicate my unit tests.
So I was wondering if there are ways to easily mock flow runs without needing access to a Prefect server?Kevin Kho
StartFlowRun.run()
? or is it that you want to test the code inside those subflows?Peter Roelants
06/09/2021, 2:55 PMKevin Kho
from prefect.utilities.storage import extract_flow_from_file
def test_flow(file):
file_path = os.path.abspath(file)
flow = extract_flow_from_file(file_path=file_path)
flow.run()
Peter Roelants
06/09/2021, 4:32 PMStartFlowRun
task in a parent flow. So if I want to test the full integration of parent flow and child flow, together with any results from the child flow that the parent flow might use, I currently need a server to run.Kevin Kho
Kevin Kho