Hypothesis

Latest version: v6.122.3

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

Scan your dependencies

Page 181 of 210

3.35.0

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

This minor release supports constraining :func:`~hypothesis.strategies.uuids`
to generate a particular version of :class:`~python:uuid.UUID` (:issue:`721`).

Thanks to Dion Misic for this feature.

3.34.1

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

This patch updates the documentation to suggest
:func:`builds(callable) <hypothesis.strategies.builds>` instead of
:func:`just(callable()) <hypothesis.strategies.just>`.

3.34.0

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

Hypothesis now emits deprecation warnings if you apply
:func:`given <hypothesis.given>` more than once to a target.

Applying :func:`given <hypothesis.given>` repeatedly wraps the target multiple
times. Each wrapper will search the space of of possible parameters separately.
This is equivalent but will be much more inefficient than doing it with a
single call to :func:`given <hypothesis.given>`.

For example, instead of
``given(booleans()) given(integers())``, you could write
``given(booleans(), integers())``

3.33.1

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

This is a bugfix release:

- :func:`~hypothesis.strategies.builds` would try to infer a strategy for
required positional arguments of the target from type hints, even if they
had been given to :func:`~hypothesis.strategies.builds` as positional
arguments (:issue:`946`). Now it only infers missing required arguments.
- An internal introspection function wrongly reported ``self`` as a required
argument for bound methods, which might also have affected
:func:`~hypothesis.strategies.builds`. Now it knows better.

3.33.0

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

This release supports strategy inference for more Django field types - you can now omit an argument for
Date, Time, Duration, Slug, IP Address, and UUID fields. (:issue:`642`)

Strategy generation for fields with grouped choices now selects choices from
each group, instead of selecting from the group names.

3.32.2

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

This patch removes the ``mergedb`` tool, introduced in Hypothesis 1.7.1
on an experimental basis. It has never actually worked, and the new
:doc:`Hypothesis example database <database>` is designed to make such a
tool unnecessary.

Page 181 of 210

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.