mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
test_urls: Upgrade to HttpResponse.json().
This commit is contained in:
@@ -97,8 +97,7 @@ class PublicURLTest(ZulipTestCase):
|
|||||||
self.assertEqual(400, resp.status_code,
|
self.assertEqual(400, resp.status_code,
|
||||||
msg="Expected 400, received %d for GET /api/v1/fetch_google_client_id" % (
|
msg="Expected 400, received %d for GET /api/v1/fetch_google_client_id" % (
|
||||||
resp.status_code,))
|
resp.status_code,))
|
||||||
data = ujson.loads(resp.content)
|
self.assertEqual('error', resp.json()['result'])
|
||||||
self.assertEqual('error', data['result'])
|
|
||||||
|
|
||||||
def test_get_gcid_when_configured(self):
|
def test_get_gcid_when_configured(self):
|
||||||
# type: () -> None
|
# type: () -> None
|
||||||
|
|||||||
Reference in New Issue
Block a user