Update settings backend tests to handle new frontent config options

(imported from commit a17f931d51e11edec978c249ae116c734fb8d267)
This commit is contained in:
Leo Franchi 2013-05-08 14:39:29 -04:00 committed by Tim Abbott
parent 065e6de420
commit 23847545eb
1 changed files with 5 additions and 1 deletions

View File

@ -1404,13 +1404,17 @@ class ChangeSettingsTest(AuthedTestCase):
post_params = {"full_name": "Foo Bar",
"old_password": initial_password("hamlet@humbughq.com"),
"new_password": "foobar1", "confirm_password": "foobar1",
"enable_desktop_notifications": ""}
"enable_desktop_notifications": "",
"enable_offline_email_notifications": "",
"enable_sounds": ""}
post_params.update(modified_params)
return self.client.post("/json/settings/change", dict(post_params))
def check_well_formed_change_settings_response(self, result):
self.assertIn("full_name", 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):
"""