diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-30 16:11:14 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-30 16:11:14 +0000 |
commit | 7d897f5bfc4bbb65aa9ab4fb8e601511633baf2c (patch) | |
tree | ccb776c4531d442f5c8c7629528d6e085bb45464 /tests/handlers/test_federation.py | |
parent | Allow any greater version for webclient (diff) | |
parent | Briefly doc structure of query_auth API. (diff) | |
download | synapse-7d897f5bfc4bbb65aa9ab4fb8e601511633baf2c.tar.xz |
Merge pull request #43 from matrix-org/rejections
Rejections
Diffstat (limited to 'tests/handlers/test_federation.py')
-rw-r--r-- | tests/handlers/test_federation.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/handlers/test_federation.py b/tests/handlers/test_federation.py index ed21defd13..44dbce6bea 100644 --- a/tests/handlers/test_federation.py +++ b/tests/handlers/test_federation.py @@ -52,6 +52,7 @@ class FederationTestCase(unittest.TestCase): "get_room", "get_destination_retry_timings", "set_destination_retry_timings", + "have_events", ]), resource_for_federation=NonCallableMock(), http_client=NonCallableMock(spec_set=[]), @@ -90,6 +91,7 @@ class FederationTestCase(unittest.TestCase): self.datastore.persist_event.return_value = defer.succeed(None) self.datastore.get_room.return_value = defer.succeed(True) self.auth.check_host_in_room.return_value = defer.succeed(True) + self.datastore.have_events.return_value = defer.succeed({}) def annotate(ev, old_state=None): context = Mock() |