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
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.