hypothesis v5.11.0 Release Notes

Release Date: 2020-05-07 // almost 4 years ago
  • ๐Ÿš€ This release improves the interaction between "assume()" and the
    โœ… "@example()" decorator, so that the following test no longer fails
    with "UnsatisfiedAssumption" (issue #2125):

    @given(value=floats(0, 1))
    โœ… @example(value=0.56789) # used to make the test fail!
    โœ… @pytest.mark.parametrize("threshold", [0.5, 1])
    โœ… def test_foo(threshold, value):
    assume(value < threshold)
    ...

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