Creates a conftest.py file for the template with a couple of useful test fixtures.
The reset_object_registry fixture prevents error messages like this from cluttering the logs of test runs:
A flow named 'bar' and defined at ... conflicts with another flow. Consider specifying a unique `name` parameter in the flow definition:
The prefect_db fixture uses the prefect_test_harness to set up a temporary DB for test runs to avoid potential conflicts with the runner's current environment.
Creates a
conftest.py
file for the template with a couple of useful test fixtures.reset_object_registry
fixture prevents error messages like this from cluttering the logs of test runs:A flow named 'bar' and defined at ... conflicts with another flow. Consider specifying a unique `name` parameter in the flow definition:
prefect_db
fixture uses theprefect_test_harness
to set up a temporary DB for test runs to avoid potential conflicts with the runner's current environment.