mirror of https://github.com/zulip/zulip.git
result.json: Upgrade test_settings.
This commit is contained in:
parent
d44c1e7070
commit
eb04fc006e
|
@ -238,7 +238,7 @@ class UserChangesTest(ZulipTestCase):
|
|||
old_api_key = user.api_key
|
||||
result = self.client_post('/json/users/me/api_key/regenerate')
|
||||
self.assert_json_success(result)
|
||||
new_api_key = ujson.loads(result.content)['api_key']
|
||||
new_api_key = result.json()['api_key']
|
||||
self.assertNotEqual(old_api_key, new_api_key)
|
||||
user = self.example_user('hamlet')
|
||||
self.assertEqual(new_api_key, user.api_key)
|
||||
|
|
Loading…
Reference in New Issue