mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
tests: Refactor away result.json() calls with helpers.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
a6e2453323
commit
a142fbff85
@@ -362,8 +362,7 @@ class PushBouncerNotificationTest(BouncerTestCase):
|
||||
payload,
|
||||
content_type="application/json",
|
||||
)
|
||||
self.assert_json_success(result)
|
||||
data = result.json()
|
||||
data = self.assert_json_success(result)
|
||||
self.assertEqual(
|
||||
{"result": "success", "msg": "", "total_android_devices": 2, "total_apple_devices": 1},
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user