diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-10-16 00:09:48 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-10-16 00:09:48 +0100 |
commit | 66104da10c4191aa1e048f2379190574755109e6 (patch) | |
tree | 6b98f50ebaef2b75c78368174ddb939c3e95200e /tests/rest/test_profile.py | |
parent | persist hashes and origin signatures for PDUs (diff) | |
download | synapse-66104da10c4191aa1e048f2379190574755109e6.tar.xz |
Sign outgoing PDUs.
Diffstat (limited to 'tests/rest/test_profile.py')
-rw-r--r-- | tests/rest/test_profile.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/rest/test_profile.py b/tests/rest/test_profile.py index b0f48e7fd8..3a0d1e700a 100644 --- a/tests/rest/test_profile.py +++ b/tests/rest/test_profile.py @@ -18,9 +18,9 @@ from tests import unittest from twisted.internet import defer -from mock import Mock +from mock import Mock, NonCallableMock -from ..utils import MockHttpResource +from ..utils import MockHttpResource, MockKey from synapse.api.errors import SynapseError, AuthError from synapse.server import HomeServer @@ -41,6 +41,9 @@ class ProfileTestCase(unittest.TestCase): "set_avatar_url", ]) + self.mock_config = NonCallableMock() + self.mock_config.signing_key = [MockKey()] + hs = HomeServer("test", db_pool=None, http_client=None, @@ -48,6 +51,7 @@ class ProfileTestCase(unittest.TestCase): federation=Mock(), replication_layer=Mock(), datastore=None, + config=self.mock_config, ) def _get_user_by_req(request=None): |