Verified Commit d13fb37a by meskio

[test] fix key renew test

parent 6300a435
......@@ -172,11 +172,9 @@ class KeyManagerKeyManagementTestCase(KeyManagerWithSoledadTestCase):
@defer.inlineCallbacks
def test_get_public_key_fetches_remotely_if_key_expired(self):
km = self._key_manager()
nicknym_response = {'address': ADDRESS,
'openpgp': DIFFERENT_PUBLIC_KEY}
km = self._key_manager(user=ADDRESS_2)
km._nicknym.fetch_key_with_address = mock.Mock(
return_value=nicknym_response)
return_value=DIFFERENT_PUBLIC_KEY)
# put key
yield km._openpgp.put_raw_key(PUBLIC_KEY, ADDRESS)
......
......@@ -50,7 +50,7 @@ commands =
py.test -k 'not bench' --pep8 -x {posargs}
deps =
-r{toxinidir}/pkg/requirements-testing.pip
-egit+https://github.com/isislovecruft/python-gnupg.git@develop#egg=gnupg
gnupg
-e../leap_commondev
-e../soledad
setenv =
......@@ -61,7 +61,7 @@ setenv =
commands = py.test {posargs}
changedir = bench
deps =
-egit+https://github.com/isislovecruft/python-gnupg.git@develop#egg=gnupg
gnupg
pytest
pytest-benchmark
# need the next 2 for graphs, but new version changed api a bit and is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment