diff options
author | Damir Jelić <poljar@termina.org.uk> | 2019-06-20 13:45:33 +0200 |
---|---|---|
committer | Damir Jelić <poljar@termina.org.uk> | 2019-06-20 13:45:33 +0200 |
commit | 125c62098c35e2e7fcf4ad916d764a5a69edd9b9 (patch) | |
tree | 37cfc553bcb5ea5db9870923208c50fd9da91d2c /python/tests/utils_test.py | |
parent | 25662564d415b9d5486f1915c9d46e5851b058d0 (diff) |
tests: Drop hypothesis from the tests.
Hypothesis recently had some problems with the typing module breaking
the tox tests.
Since Hypothesis isn't really used much in the test this patch removes
it from them as well as from the test-requirements.
Diffstat (limited to 'python/tests/utils_test.py')
-rw-r--r-- | python/tests/utils_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/tests/utils_test.py b/python/tests/utils_test.py index a552d12..9d22157 100644 --- a/python/tests/utils_test.py +++ b/python/tests/utils_test.py @@ -2,16 +2,16 @@ import base64 import hashlib from future.utils import bytes_to_native_str -from hypothesis import given -from hypothesis.strategies import text from olm import sha256 from olm._compat import to_bytes class TestClass(object): - @given(text(), text()) - def test_sha256(self, input1, input2): + def test_sha256(self): + input1 = "It's a secret to everybody" + input2 = "It's a secret to nobody" + first_hash = sha256(input1) second_hash = sha256(input2) |