./devel/py-hypothesis, Python library for property based testing

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 3.18.5, Package name: py27-hypothesis-3.18.5, Maintainer: pkgsrc-users

Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by hand.
It's based on the Haskell library, Quickcheck, and is designed to
integrate seamlessly into your existing Python unit testing work

Hypothesis is both extremely practical and also advances the state
of the art of unit testing by some way. It's easy to use, stable,
and extremely powerful. If you're not using Hypothesis to test your
project then you're missing out.

Required to run:
[devel/py-setuptools] [databases/py-sqlite3] [lang/python27] [devel/py-enum34]

Required to build:

Master sites:

SHA1: c3ac95f414ea3888f6eb5dce790c23cc7b56884f
RMD160: b171ccc27adc8b099e8cbc381446cebd837f7517
Filesize: 96.224 KB

Version history: (Expand)

CVS history: (Expand)

   2017-08-19 14:16:20 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
This is a bugfix release for ~hypothesis.strategies.integers. Previously the \ 
strategy would hit an internal assertion if passed non-integer bounds for \ 
min_value and max_value that had no integers between them. The strategy now \ 
raises InvalidArgument instead.
   2017-08-13 11:46:55 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
This release documents the previously undocumented phases featureā€, making it \ 
part of the official public API. It also updates how the example database is \ 
used. Principally:
* A Phases.reuse argument will now correctly control whether examples from the \ 
database are run (it previously did exactly the wrong thing and controlled \ 
whether examples would be saved).
* Hypothesis will no longer try to rerun all previously failing examples. \ 
Instead it will replay the smallest previously failing example and a selection \ 
of other examples that are likely to trigger any other bugs that will found. \ 
This prevents a previous failure from dominating your tests unnecessarily.
* As a result of the previous change, Hypothesis will be slower about clearing \ 
out old examples from the database that are no longer failing (because it can \ 
only clear out ones that it actually runs).
   2017-08-07 20:00:41 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
This release makes an implementation change to how Hypothesis handles certain \ 
internal constructs.

The main effect you should see is improvement to the behaviour and performance \ 
of collection types, especially ones with a min_size parameter. Many cases that \ 
would previously fail due to being unable to generate enough valid examples will \ 
now succeed, and other cases should run slightly faster.

This release introduces a deprecation of the timeout feature. This results in \ 
the following changes:

Creating a settings object with an explicit timeout will emit a deprecation warning.
If your test stops because it hits the timeout (and has not found a bug) then it \ 
will emit a deprecation warning.
There is a new value unlimited which you can import from hypothesis. \ 
settings(timeout=unlimited) will not cause a deprecation warning.
There is a new health check, hung_test, which will trigger after a test has been \ 
running for five minutes if it is not suppressed.
   2017-08-04 06:57:52 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
This fixes a bug where Hypothesis would not work correctly on Python 2.7 if you \ 
had the typing module backport installed.
   2017-08-03 09:42:09 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
Fix bad header that somehow made it in
   2017-07-24 12:23:57 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
Hypothesis now understands inline type annotations
   2017-07-21 10:40:46 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
Honour 'skip test' exceptions
   2017-07-17 09:05:34 by Adam Ciarcinski | Files touched by this commit (3)
Log message:

This release has two major aspects to it: The first is the introduction of \ 
:func:`~hypothesis.strategies.deferred`, which allows more natural definition of \ 
recursive (including mutually recursive) strategies.

The second is a number of engine changes designed to support this sort of \ 
strategy better. These should have a knock-on effect of also improving the \ 
performance of any existing strategies that currently generate a lot of data or \ 
involve heavy nesting by reducing their typical example size.