diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-09-03 16:11:34 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-09-03 16:11:34 +0100 |
commit | b8906b0ea80149f1219161d24135ccc8d0f014ea (patch) | |
tree | 8391df33a27fca1764658eb56c2275f3a6d152f2 /tests/handlers/test_presencelike.py | |
parent | Kill the state (diff) | |
download | synapse-b8906b0ea80149f1219161d24135ccc8d0f014ea.tar.xz |
Kill the 'state' presence key in DB, name it 'presence' instead to match the over-the-wire API
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 fc0ef8c705..2f551f1b6b 100644 --- a/tests/handlers/test_presencelike.py +++ b/tests/handlers/test_presencelike.py @@ -144,14 +144,14 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase): ] mocked_set = self.datastore.set_presence_state - mocked_set.return_value = defer.succeed({"state": OFFLINE}) + mocked_set.return_value = defer.succeed({"presence": OFFLINE}) yield self.handlers.presence_handler.set_state( target_user=self.u_apple, auth_user=self.u_apple, state={"presence": UNAVAILABLE, "status_msg": "Away"}) mocked_set.assert_called_with("apple", - {"state": UNAVAILABLE, "status_msg": "Away"} + {"presence": UNAVAILABLE, "status_msg": "Away"} ) @defer.inlineCallbacks @@ -162,7 +162,7 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase): ] self.datastore.set_presence_state.return_value = defer.succeed( - {"state": ONLINE} + {"presence": ONLINE} ) # TODO(paul): Gut-wrenching @@ -244,7 +244,7 @@ class PresenceProfilelikeDataTestCase(unittest.TestCase): ] self.datastore.set_presence_state.return_value = defer.succeed( - {"state": ONLINE} + {"presence": ONLINE} ) # TODO(paul): Gut-wrenching |