https://prefect.io logo
k

Khari Gardner

08/10/2023, 8:26 PM
Any recommendations to developing unittests for prefect blocks?
n

Nate

08/14/2023, 9:23 PM
hi @Khari Gardner - here's an example from prefect-aws of a pretty common pattern when unit testing blocks we usually create a fixture that returns a dummy instance of the block in order to test something that needs it as for the block itself, you can test it the same as you'd test a pydantic model if you need to