diff options
author | Terry Chia <terrycwk1994@gmail.com> | 2015-03-22 11:49:08 +0800 |
---|---|---|
committer | Terry Chia <terrycwk1994@gmail.com> | 2015-09-26 22:31:53 +0800 |
commit | 5cec1bf1b644c33cffe96e8f8ebd11a1a343bc6d (patch) | |
tree | 0950e4607d93287bc0f48b51e2c3b82b9e686ed5 /tox.ini | |
parent | 3f3f20c7b429a19819e90e0bb181c5895e18c7dc (diff) | |
download | cryptography-5cec1bf1b644c33cffe96e8f8ebd11a1a343bc6d.tar.gz cryptography-5cec1bf1b644c33cffe96e8f8ebd11a1a343bc6d.tar.bz2 cryptography-5cec1bf1b644c33cffe96e8f8ebd11a1a343bc6d.zip |
Add plumbing for hypothesis.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -8,6 +8,29 @@ deps = iso8601 pretend pytest<2.8 + hypothesis + hypothesis-pytest + ./vectors +passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH USERNAME +commands = + pip list + python -c "from cryptography.hazmat.backends.openssl.backend import backend; print(backend.openssl_version_text())" + # We use parallel mode and then combine here so that coverage.py will take + # the paths like .tox/py34/lib/python3.4/site-packages/cryptography/__init__.py + # and collapse them into src/cryptography/__init__.py. + coverage run --parallel-mode -m pytest --capture=no --strict {posargs} + coverage combine + coverage report -m + +[testenv:py26] +# This mirrors the testenv minus the hypothesis and hypothesis-test deps. +deps = + coverage + iso8601 + pretend + pytest<2.8 + hypothesis + hypothesis-pytest ./vectors passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH USERNAME commands = @@ -85,7 +108,7 @@ commands = py.test --capture=no --strict --random {posargs} [flake8] -exclude = .tox,*.egg,.git,_build +exclude = .tox,*.egg,.git,_build,.hypothesis select = E,W,F,N,I application-import-names = cryptography,cryptography_vectors,tests |