hi, what is a way to avoid unit-test a flow function (in prefect2) that presents the flow run in UI...
t
hi, what is a way to avoid unit-test a flow function (in prefect2) that presents the flow run in UI for every time the test run?
I’ve tried
prefect cloud logout
which is not working. Everytime when I run the unittest the UI still shows it.
r
The prefect_test_harness context manager might be what you need. You can see examples of it in use here: https://docs.prefect.io/latest/guides/testing/
t
Thanks! yeah looks exactly what I need.