summaryrefslogtreecommitdiff
path: root/src/leap/mail/tests
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2016-02-09 10:29:52 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2016-02-09 13:08:11 +0100
commit27f1a84897bf60135820a99f92bfdd36e97450e5 (patch)
tree00675ceb6722593d74a6e7bacafa9fbc2c7205c4 /src/leap/mail/tests
parentdef352848b88dd8445bfca8e4c092134b8c4d5b2 (diff)
[tests] fix missing pycryptopp dependency and mock async calls
- leap_mail still uses pycryptopp and therefore still needs the dependency - Keymanager calls to async HTTPClient had not been mocked, causing a test to fail - fixed a pep8 warning
Diffstat (limited to 'src/leap/mail/tests')
-rw-r--r--src/leap/mail/tests/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/leap/mail/tests/__init__.py b/src/leap/mail/tests/__init__.py
index 71452d2..8094c11 100644
--- a/src/leap/mail/tests/__init__.py
+++ b/src/leap/mail/tests/__init__.py
@@ -94,6 +94,8 @@ class TestCaseWithKeyManager(unittest.TestCase, BaseLeapTest):
gpgbinary=self.GPG_BINARY_PATH)
self._km._fetcher.put = Mock()
self._km._fetcher.get = Mock(return_value=Response())
+ self._km._async_client.request = Mock(return_value="")
+ self._km._async_client_pinned.request = Mock(return_value="")
d1 = self._km.put_raw_key(PRIVATE_KEY, OpenPGPKey, ADDRESS)
d2 = self._km.put_raw_key(PRIVATE_KEY_2, OpenPGPKey, ADDRESS_2)