mirror of https://github.com/zulip/zulip.git
openapi: Remove unused display_brief_error parameter.
It’s unused since commit a881918a05
(#24979).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
b6fb77525f
commit
9ba102f3ea
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue