mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit f223251ffe)
This commit is contained in:
committed by
Tim Abbott
parent
cd485ef162
commit
d28639c08e
@@ -522,13 +522,13 @@ def deprecated_note_in_description(description: str) -> bool:
|
||||
def check_deprecated_consistency(deprecated: bool, description: str) -> None:
|
||||
# Test to make sure deprecated parameters are marked so.
|
||||
if deprecated_note_in_description(description):
|
||||
assert (
|
||||
deprecated
|
||||
), f"Missing `deprecated: true` despite being described as deprecated:\n\n{description}\n"
|
||||
assert deprecated, (
|
||||
f"Missing `deprecated: true` despite being described as deprecated:\n\n{description}\n"
|
||||
)
|
||||
if deprecated:
|
||||
assert deprecated_note_in_description(
|
||||
description
|
||||
), f"Marked as `deprecated: true`, but changes documentation doesn't properly explain as **Deprecated** in the standard format\n\n:{description}\n"
|
||||
assert deprecated_note_in_description(description), (
|
||||
f"Marked as `deprecated: true`, but changes documentation doesn't properly explain as **Deprecated** in the standard format\n\n:{description}\n"
|
||||
)
|
||||
|
||||
|
||||
# Skip those JSON endpoints whose query parameters are different from
|
||||
|
||||
Reference in New Issue
Block a user