Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
openapi: Remove unused display_brief_error parameter.
Anders Kaseorg9ba102f3ea57
diff --git a/zerver/openapi/openapi.py b/zerver/openapi/openapi.pyindex ae1cdaa02f9..84e28a29048 100644--- a/zerver/openapi/openapi.py+++ b/zerver/openapi/openapi.py@@ -360,11 +360,7 @@ def fix_events(content: Dict[str, Any]) -> None:def validate_against_openapi_schema(- content: Dict[str, Any],- path: str,- method: str,- status_code: str,- display_brief_error: bool = False,+ content: Dict[str, Any], path: str, method: str, status_code: str) -> bool:"""Compare a "content" dict with the defined schema for a specific methodin an endpoint. Return true if validated and false if skipped.diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.pyindex ad7ad4e007a..d7ba47138fe 100644--- a/zerver/tests/test_events.py+++ b/zerver/tests/test_events.py@@ -346,7 +346,7 @@ class BaseAction(ZulipTestCase):"msg": "","result": "success",}- validate_against_openapi_schema(content, "/events", "get", "200", display_brief_error=True)+ validate_against_openapi_schema(content, "/events", "get", "200")self.assert_length(events, num_events)initial_state = copy.deepcopy(hybrid_state)post_process_state(self.user_profile, initial_state, notification_settings_null)