summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-07-20 19:15:04 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:25 +0200
commit40fb94aaf5de724050232057013d8d07c8fe6db8 (patch)
tree85bbb3eee3744e2da96f7f92fbda13a01275d0ad /service
parentedf274ba053fc1dcbf0433f9ba947cc1cc2faa11 (diff)
fix unit tests for nicknym
Diffstat (limited to 'service')
-rw-r--r--service/test/unit/bitmask_libraries/test_nicknym.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/service/test/unit/bitmask_libraries/test_nicknym.py b/service/test/unit/bitmask_libraries/test_nicknym.py
index 85fd171d..dc4845d1 100644
--- a/service/test/unit/bitmask_libraries/test_nicknym.py
+++ b/service/test/unit/bitmask_libraries/test_nicknym.py
@@ -39,12 +39,12 @@ class NickNymTest(AbstractLeapTest):
'test_user@some-server.test',
'https://nicknym.some-server.test:6425/',
self.soledad,
- self.auth.token,
- '/some/path/to/provider_ca_cert',
- 'https://api.some-server.test:4430',
- '1',
- self.auth.uuid,
- '/path/to/gpg')
+ token=self.auth.token,
+ ca_cert_path='/some/path/to/provider_ca_cert',
+ api_uri='https://api.some-server.test:4430',
+ api_version='1',
+ uid=self.auth.uuid,
+ gpgbinary='/path/to/gpg')
@patch('pixelated.bitmask_libraries.nicknym.KeyManager')
def test_gen_key(self, keymanager_mock):
@@ -61,5 +61,5 @@ class NickNymTest(AbstractLeapTest):
# when/then
nicknym.generate_openpgp_key()
- keyman.get_key.assert_called_with('test_user@some-server.test', openpgp.OpenPGPKey)
+ keyman.get_key.assert_called_with('test_user@some-server.test', openpgp.OpenPGPKey, private=True, fetch_remote=False)
keyman.gen_key.assert_called_with(openpgp.OpenPGPKey)