Skip to main content

Command line interface for Hypothesis property based tests

Project description

hypothit

PyPI badge Documentation Status CI badge

Command line interface for Hypothesis property based tests

$ hypothit trial --given "a=integers()" --assume 'a!=0' "assert a==42"
from hypothesis import given, assume
from hypothesis.strategies import integers


@given(a=integers())
def inner(a):
    assume(a!=0)
    assert a==42

inner()

Falsifying example: inner(a=1)
Traceback (most recent call last):
File ".../hypothit/cli.py", line 90, in trial
    exec(src, g)
File "<string>", line 10, in <module>
File "<string>", line 6, in inner
File ".../hypothesis/core.py", line 1024, in wrapped_test
    raise the_error_hypothesis_found
File "<string>", line 8, in inner
AssertionError

Credits

This package was cut with Cookiecutter, & audreyr/cookiecutter-pypackage.

History

0.1.0 (2019-05-01)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypothit-0.1.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

hypothit-0.1.0-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hypothit-0.1.0.tar.gz.

File metadata

  • Download URL: hypothit-0.1.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for hypothit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f8b2a2db92c19faee2a8f4c62fb9df728097baa501f22e90c19ac6e0b9646cee
MD5 f176d11269e95a53ff33cad862387f46
BLAKE2b-256 0ecc95506355c9e08dad4a18e60ca8cd3fb89340d5e929b2db0573dd23054383

See more details on using hashes here.

File details

Details for the file hypothit-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: hypothit-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for hypothit-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e456a04e0dc15f188bada52821dcc7787acc9ec1d2d3ef5980497617bf21104c
MD5 eac0f6f8f10cde545c52d94e088121d3
BLAKE2b-256 521619a7744ad40793b7a1c6afed80520f80dac4776da5b4ddc48a3f9a2ddeff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page