6 ms·
You can already do this using Hypothesis with the Pydantic plugin, https://pydantic-docs.helpmanual.io/hypothesis_plugin/ https://pydantic-docs.helpmanual.io/hy
by pgjones 5y ago
You can already do this using Hypothesis with the Pydantic plugin, https://pydantic-docs.helpmanual.io/hypothesis_plugin/ https://pydantic-docs.helpmanual.io/hypothesis_plugin/. Here is an example for Quart-Schema (similar setup to FastAPI) https://pgjones.dev/blog/automatic-api-testing-2021 https://pgjones.dev/blog/automatic-api-testing-2021.
- solarmist 5y agoExcellent! It's always nice to find useful tools you didn't know about.