From b8906b0ea80149f1219161d24135ccc8d0f014ea Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Wed, 3 Sep 2014 16:11:34 +0100 Subject: Kill the 'state' presence key in DB, name it 'presence' instead to match the over-the-wire API --- tests/handlers/test_presencelike.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/handlers/test_presencelike.py') 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 -- cgit 1.5.1