Hypothesis

Latest version: v6.100.1

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

Scan your dependencies

Page 129 of 195

3.84.1

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

This patch adds information about when features were deprecated, but this
is only recorded internally and has no user-visible effect.

3.84.0

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

This release changes the stateful testing backend from
``find()`` to use :func:`given <hypothesis.given>`
(:issue:`1300`). This doesn't change how you create stateful tests,
but does make them run more like other Hypothesis tests.

:func:`reproduce_failure <hypothesis.reproduce_failure>` and
:func:`seed <hypothesis.seed>` now work for stateful tests.

Stateful tests now respect the :attr:`~hypothesis.settings.deadline`
and :attr:`~hypothesis.settings.suppress_health_check` settings,
though they are disabled by default. You can enable them by using
:func:`settings(...) <hypothesis.settings>` as a class decorator
with whatever arguments you prefer.

3.83.2

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

Hypothesis has adopted :pypi:`Black` as our code formatter (:issue:`1686`).
There are no functional changes to the source, but it's prettier!

3.83.1

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

This patch increases the variety of examples generated by
:func:`~hypothesis.strategies.from_type`.

3.83.0

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

Our pytest plugin now warns you when strategy functions have been collected
as tests, which may happen when e.g. using the
:func:`composite <hypothesis.strategies.composite>` decorator when you
should be using ``given(st.data())`` for inline draws.
Such functions *always* pass when treated as tests, because the lazy creation
of strategies mean that the function body is never actually executed!

3.82.6

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

Hypothesis can now :ref:`show statistics <statistics>` when running
under :pypi:`pytest-xdist`. Previously, statistics were only reported
when all tests were run in a single process (:issue:`700`).

Page 129 of 195

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.