aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_with_hypothesis.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_with_hypothesis.py b/tests/test_with_hypothesis.py
index 31dfa04c..5a181216 100644
--- a/tests/test_with_hypothesis.py
+++ b/tests/test_with_hypothesis.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)