Hello, can anyone help me? thanks :smile:, I'm try...
# prefect-community
r
Hello, can anyone help me? thanks 😄, I'm trying to create unit/integration tests to check my flows and tasks. I'm using Prefect Orion
prefect = "2.0a13"
, I did read this link, but I'm using async flows. More infos in the thread.
My async flow:
Copy code
@flow(name="AutomaticLostFlow")
async def automatic_lost_flow() -> None:
    await automatic_lost_task()
My async task:
Copy code
@task(name="AutomaticLostTask")
async def automatic_lost_task():
    logger = get_run_logger()
    r = await lost.automatic_lost()
    <http://logger.info|logger.info>(f"{r} onboardings gone to lost stage")
lost.automatic_lost()
is an async query in the database
I would like to know how to test my flow (
automatic_lost_flow()
)
a
the docs you shared are for Prefect 1.0 though. For Orion, check out https://orion-docs.prefect.io/
r
Maybe this helps yes. Thanks a lot, I will read now.
😄 1