aboutsummaryrefslogtreecommitdiff
path: root/python/tests/account_test.py
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2019-06-20 13:45:33 +0200
committerDamir Jelić <poljar@termina.org.uk>2019-06-20 13:45:33 +0200
commit125c62098c35e2e7fcf4ad916d764a5a69edd9b9 (patch)
tree37cfc553bcb5ea5db9870923208c50fd9da91d2c /python/tests/account_test.py
parent25662564d415b9d5486f1915c9d46e5851b058d0 (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/account_test.py')
-rw-r--r--python/tests/account_test.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/python/tests/account_test.py b/python/tests/account_test.py
index 7ee6d2b..f3b71eb 100644
--- a/python/tests/account_test.py
+++ b/python/tests/account_test.py
@@ -1,8 +1,6 @@
from builtins import int
import pytest
-from hypothesis import given
-from hypothesis.strategies import text
from olm import Account, OlmAccountError, OlmVerifyError, ed25519_verify
from olm._compat import to_bytes
@@ -73,8 +71,8 @@ class TestClass(object):
alice = Account()
del alice
- @given(text())
- def test_valid_signature(self, message):
+ def test_valid_signature(self):
+ message = "It's a secret to everybody"
alice = Account()
signature = alice.sign(message)
@@ -85,8 +83,8 @@ class TestClass(object):
ed25519_verify(signing_key, message, signature)
- @given(text())
- def test_invalid_signature(self, message):
+ def test_invalid_signature(self):
+ message = "It's a secret to everybody"
alice = Account()
bob = Account()
@@ -99,8 +97,8 @@ class TestClass(object):
with pytest.raises(OlmVerifyError):
ed25519_verify(signing_key, message, signature)
- @given(text())
- def test_signature_verification_twice(self, message):
+ def test_signature_verification_twice(self):
+ message = "It's a secret to everybody"
alice = Account()
signature = alice.sign(message)