From de5f43ea478fc1479b00a2cdaaa255a38e64ba92 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Thu, 17 Aug 2017 11:29:14 +0500 Subject: [PATCH] result.json: Upgrade test_bots. --- zerver/tests/test_bots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/tests/test_bots.py b/zerver/tests/test_bots.py index 062cdd4ff5..3b7476a352 100644 --- a/zerver/tests/test_bots.py +++ b/zerver/tests/test_bots.py @@ -38,7 +38,7 @@ class BotTest(ZulipTestCase, UploadSerializeMixin): bot_info.update(extras) result = self.client_post("/json/bots", bot_info) self.assert_json_success(result) - return ujson.loads(result.content) + return result.json() def test_bot_domain(self): # type: () -> None @@ -468,7 +468,7 @@ class BotTest(ZulipTestCase, UploadSerializeMixin): def get_bot(self): # type: () -> Dict[str, Any] result = self.client_get("/json/bots") - bots = ujson.loads(result.content)['bots'] + bots = result.json()['bots'] return bots[0] def test_update_api_key(self):