Hypothesis

Latest version: v6.122.3

Safety actively analyzes 688587 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 197 of 210

3.2.0

Not secure
------------------

This is a small single-feature release:

* All tests using :func:`given <hypothesis.given>` now fix the global random seed. This removes the health
check for that. If a non-zero seed is required for the final falsifying
example, it will be reported. Otherwise Hypothesis will assume randomization
was not a significant factor for the test and be silent on the subject. If you
use :func:`~hypothesis.strategies.random_module` this will continue to work and will always
display the seed.

3.1.3

Not secure
------------------

Single bug fix release

* Another charmap problem. In :ref:`3.1.2 <v3.1.2>` :func:`~hypothesis.strategies.text` and
:func:`~hypothesis.strategies.characters` would break on systems
which had ``/tmp`` mounted on a different partition than the Hypothesis storage
directory (usually in home). This fixes that.

3.1.2

Not secure
------------------

Single bug fix release:

* Anything which used a :func:`~hypothesis.strategies.text` or
:func:`~hypothesis.strategies.characters` strategy was broken on Windows
and I hadn't updated appveyor to use the new repository location so I didn't
notice. This is now fixed and windows support should work correctly.

3.1.1

Not secure
------------------

Minor bug fix release.

* Fix concurrency issue when running tests that use :func:`~hypothesis.strategies.text` from multiple
processes at once (:issue:`302`, thanks to Alex Chan).
* Improve performance of code using :func:`~hypothesis.strategies.lists` with max_size (thanks to
Cristi Cobzarenco).
* Fix install on Python 2 with ancient versions of pip so that it installs the
:pypi:`enum34` backport (thanks to Donald Stufft for telling me how to do this).
* Remove duplicated __all__ exports from hypothesis.strategies (thanks to
Piët Delport).
* Update headers to point to new repository location.
* Allow use of strategies that can't be used in ``find()``
(e.g. ``choices()``) in stateful testing.

3.1.0

Not secure
------------------

* Add a :func:`~hypothesis.strategies.nothing` strategy that never successfully generates values.
* :func:`~hypothesis.strategies.sampled_from` and :func:`~hypothesis.strategies.one_of`
can both now be called with an empty argument
list, in which case they also never generate any values.
* :func:`~hypothesis.strategies.one_of` may now be called with a single argument that is a collection of strategies
as well as as varargs.
* Add a :func:`~hypothesis.strategies.runner` strategy which returns the instance of the current test object
if there is one.
* 'Bundle' for RuleBasedStateMachine is now a normal(ish) strategy and can be used
as such.
* Tests using RuleBasedStateMachine should now shrink significantly better.
* Hypothesis now uses a pretty-printing library internally, compatible with IPython's
pretty printing protocol (actually using the same code). This may improve the quality
of output in some cases.
* Add a 'phases' setting that allows more fine grained control over which parts of the
process Hypothesis runs
* Add a suppress_health_check setting which allows you to turn off specific health checks
in a fine grained manner.
* Fix a bug where lists of non fixed size would always draw one more element than they
included. This mostly didn't matter, but if would cause problems with empty strategies
or ones with side effects.
* Add a mechanism to the Django model generator to allow you to explicitly request the
default value (thanks to Jeremy Thurgood for this one).

3.0.5

Not secure
------------------

* Fix a bug where Hypothesis would now error on :pypi:`pytest` development versions.

Page 197 of 210

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.