github HypothesisWorks/hypothesis hypothesis-python-5.49.0
Hypothesis for Python - version 5.49.0

latest releases: hypothesis-python-6.112.4, hypothesis-python-6.112.3, hypothesis-python-6.112.2...
3 years ago

This release adds the "function_scoped_fixture" health check value,
which can be used to suppress the existing warning that appears when
"@given" is applied to a test that uses pytest function-scoped
fixtures.

(This warning exists because function-scoped fixtures only run once
per function, not once per example, which is usually unexpected and
can cause subtle problems.)

When this warning becomes a health check error in a future release,
suppressing it via Python warning settings will no longer be possible.
In the rare case that once-per-function behaviour is intended, it will
still be possible to use "function_scoped_fixture" to opt out of the
health check error for specific tests.

The canonical version of these notes (with links) is on readthedocs.

Don't miss a new hypothesis release

NewReleases is sending notifications on new releases.