mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-15 20:40:20 +00:00
Pin version of hypothesis above 1.11.4.
This commit is contained in:
parent
6325d5c9bc
commit
42ea0d1795
2 changed files with 5 additions and 23 deletions
|
|
@ -1,11 +1,14 @@
|
|||
from hypothesis import binary
|
||||
|
||||
import pytest
|
||||
|
||||
from cryptography.fernet import Fernet
|
||||
|
||||
|
||||
hypothesis = pytest.importorskip("hypothesis")
|
||||
|
||||
|
||||
@hypothesis.given(bytes)
|
||||
@hypothesis.given(binary())
|
||||
def test_fernet(data):
|
||||
f = Fernet(Fernet.generate_key())
|
||||
ct = f.encrypt(data)
|
||||
|
|
|
|||
23
tox.ini
23
tox.ini
|
|
@ -8,28 +8,7 @@ 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>=1.11.4
|
||||
hypothesis-pytest
|
||||
./vectors
|
||||
passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH USERNAME
|
||||
|
|
|
|||
Loading…
Reference in a new issue