Join Slack
Communities
Powered by
hi, what is a way to avoid unit-test a flow functi...
# ask-community
t
Tony Yun
09/20/2023, 1:03 AM
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?
Tony Yun
09/20/2023, 1:06 AM
I’ve tried
prefect cloud logout
which is not working. Everytime when I run the unittest the UI still shows it.
r
Ryan Peden
09/20/2023, 2:23 AM
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
Tony Yun
09/20/2023, 2:28 PM
Thanks! yeah looks exactly what I need.
Open in Slack
Previous
Next