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:
Anders Kaseorg 2023-10-19 12:05:40 -07:00 committed by Tim Abbott
parent b6fb77525f
commit 9ba102f3ea
2 changed files with 2 additions and 6 deletions

View File

@ -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.

View File

@ -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)