diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-09 17:01:11 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-09 17:01:11 +0000 |
commit | 6d74e4662102d306c036f800cbd3a3b58477f2b8 (patch) | |
tree | b7e25c222b3e0182d733321108bb1357140f21f7 /tests/handlers/test_presencelike.py | |
parent | Change room handlers get_rooms_for_user to get_joined_rooms_for_user. This us... (diff) | |
download | synapse-6d74e4662102d306c036f800cbd3a3b58477f2b8.tar.xz |
Fix tests
Diffstat (limited to 'tests/handlers/test_presencelike.py')
-rw-r--r-- | tests/handlers/test_presencelike.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/handlers/test_presencelike.py b/tests/handlers/test_presencelike.py index 18cac9a846..977e832da7 100644 --- a/tests/handlers/test_presencelike.py +++ b/tests/handlers/test_presencelike.py @@ -64,7 +64,7 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase): "set_presence_state", "is_presence_visible", "set_profile_displayname", - "get_rooms_for_user_where_membership_is", + "get_rooms_for_user", ]), handlers=None, resource_for_federation=Mock(), @@ -124,9 +124,9 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase): self.mock_update_client) hs.handlers.room_member_handler = Mock(spec=[ - "get_rooms_for_user", + "get_joined_rooms_for_user", ]) - hs.handlers.room_member_handler.get_rooms_for_user = ( + hs.handlers.room_member_handler.get_joined_rooms_for_user = ( lambda u: defer.succeed([])) # Some local users to test with @@ -138,7 +138,7 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase): self.u_potato = UserID.from_string("@potato:remote") self.mock_get_joined = ( - self.datastore.get_rooms_for_user_where_membership_is + self.datastore.get_rooms_for_user ) @defer.inlineCallbacks |