Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tests: Remove ignored parameters from stream groups tests.
Lauryn Menard260012a87e01
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.pyindex 14a1e90bd69..5347959515d 100644--- a/zerver/tests/test_subs.py+++ b/zerver/tests/test_subs.py@@ -2944,24 +2944,18 @@ class DefaultStreamGroupTest(ZulipTestCase):# Test changing description of default stream groupnew_description = "new group1 description"- result = self.client_patch(- f"/json/default_stream_groups/{group_id}", {"group_name": group_name, "op": "change"}- )+ result = self.client_patch(f"/json/default_stream_groups/{group_id}")self.assert_json_error(result, 'You must pass "new_description" or "new_group_name".')result = self.client_patch("/json/default_stream_groups/12345",- {"op": "change", "new_description": new_description},+ {"new_description": new_description},)self.assert_json_error(result, "Default stream group with id '12345' does not exist.")result = self.client_patch(f"/json/default_stream_groups/{group_id}",- {- "group_name": group_name,- "op": "change",- "new_description": new_description,- },+ {"new_description": new_description},)self.assert_json_success(result)default_stream_groups = get_default_stream_groups(realm)@@ -2974,7 +2968,7 @@ class DefaultStreamGroupTest(ZulipTestCase):do_create_default_stream_group(realm, "group2", "", [])result = self.client_patch(f"/json/default_stream_groups/{group_id}",- {"op": "change", "new_group_name": "group2"},+ {"new_group_name": "group2"},)self.assert_json_error(result, "Default stream group 'group2' already exists")new_group = lookup_default_stream_groups(["group2"], realm)[0]@@ -2982,13 +2976,13 @@ class DefaultStreamGroupTest(ZulipTestCase):result = self.client_patch(f"/json/default_stream_groups/{group_id}",- {"op": "change", "new_group_name": group_name},+ {"new_group_name": group_name},)self.assert_json_error(result, "This default stream group is already named 'group1'")result = self.client_patch(f"/json/default_stream_groups/{group_id}",- {"op": "change", "new_group_name": new_group_name},+ {"new_group_name": new_group_name},)self.assert_json_success(result)default_stream_groups = get_default_stream_groups(realm)