mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
Update settings backend tests to handle new frontent config options
(imported from commit a17f931d51e11edec978c249ae116c734fb8d267)
This commit is contained in:
@@ -1404,13 +1404,17 @@ class ChangeSettingsTest(AuthedTestCase):
|
|||||||
post_params = {"full_name": "Foo Bar",
|
post_params = {"full_name": "Foo Bar",
|
||||||
"old_password": initial_password("hamlet@humbughq.com"),
|
"old_password": initial_password("hamlet@humbughq.com"),
|
||||||
"new_password": "foobar1", "confirm_password": "foobar1",
|
"new_password": "foobar1", "confirm_password": "foobar1",
|
||||||
"enable_desktop_notifications": ""}
|
"enable_desktop_notifications": "",
|
||||||
|
"enable_offline_email_notifications": "",
|
||||||
|
"enable_sounds": ""}
|
||||||
post_params.update(modified_params)
|
post_params.update(modified_params)
|
||||||
return self.client.post("/json/settings/change", dict(post_params))
|
return self.client.post("/json/settings/change", dict(post_params))
|
||||||
|
|
||||||
def check_well_formed_change_settings_response(self, result):
|
def check_well_formed_change_settings_response(self, result):
|
||||||
self.assertIn("full_name", result)
|
self.assertIn("full_name", result)
|
||||||
self.assertIn("enable_desktop_notifications", result)
|
self.assertIn("enable_desktop_notifications", result)
|
||||||
|
self.assertIn("enable_sounds", result)
|
||||||
|
self.assertIn("enable_offline_email_notifications", result)
|
||||||
|
|
||||||
def test_successful_change_settings(self):
|
def test_successful_change_settings(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user