mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Address comments.
This commit is contained in:
parent
3d7f8d1d6c
commit
36a787ff21
2 changed files with 4 additions and 5 deletions
6
setup.py
6
setup.py
|
|
@ -60,12 +60,10 @@ test_requirements = [
|
|||
"pytest<2.8",
|
||||
"pretend",
|
||||
"iso8601",
|
||||
"hypothesis",
|
||||
"hypothesis-pytest",
|
||||
]
|
||||
|
||||
if sys.version_info[:2] != (2, 6):
|
||||
test_requirements.append("hypothesis")
|
||||
test_requirements.append("hypothesis-pytest")
|
||||
|
||||
# If there's no vectors locally that probably means we are in a tarball and
|
||||
# need to go and get the matching vectors package from PyPi
|
||||
if not os.path.exists(os.path.join(base_dir, "vectors/setup.py")):
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from hypothesis import given
|
||||
from hypothesis.strategies import binary
|
||||
|
||||
import pytest
|
||||
|
|
@ -8,7 +9,7 @@ from cryptography.fernet import Fernet
|
|||
hypothesis = pytest.importorskip("hypothesis")
|
||||
|
||||
|
||||
@hypothesis.given(binary())
|
||||
@given(binary())
|
||||
def test_fernet(data):
|
||||
f = Fernet(Fernet.generate_key())
|
||||
ct = f.encrypt(data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue