Welcome to Hypothesis!¶
Hypothesis is the property-based testing library for Python. With Hypothesis, you write tests which should pass for all inputs in whatever range you describe, and let Hypothesis randomly choose which of those inputs to check - including edge cases you might not have thought about. For example:
You should start with the tutorial, or the more condensed quickstart.
Tutorial¶
An introduction to Hypothesis.
New users should start here, or with the more condensed quickstart.
How-to guides¶
Practical guides for applying Hypothesis in specific scenarios.
Explanations¶
Commentary oriented towards deepening your understanding of Hypothesis.
API Reference¶
Technical API reference.