mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
result.json: Upgrade test_settings.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user