diff --git a/zerver/openapi/openapi.py b/zerver/openapi/openapi.py index ae1cdaa02f..84e28a2904 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 method in an endpoint. Return true if validated and false if skipped. diff --git a/zerver/tests/test_events.py b/zerver/tests/test_events.py index ad7ad4e007..d7ba47138f 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)