mirror of https://github.com/zulip/zulip.git
tests: Fix CI apocalypse perpetrated by previous commit.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
9b9efdfa0f
commit
56aadf6503
|
@ -2402,6 +2402,10 @@ paths:
|
|||
notification settings were simple booleans.
|
||||
schema:
|
||||
type: object
|
||||
example:
|
||||
{
|
||||
"notification_settings_null": true
|
||||
}
|
||||
- name: fetch_event_types
|
||||
in: query
|
||||
description: Same as the `event_types` argument except that the values
|
||||
|
|
|
@ -873,12 +873,12 @@ class TestCurlExampleGeneration(ZulipTestCase):
|
|||
'curl -sSX GET -G http://localhost:9991/api/v1/messages \\',
|
||||
' -u BOT_EMAIL_ADDRESS:BOT_API_KEY \\',
|
||||
" -d 'anchor=42' \\",
|
||||
" -d 'use_first_unread_anchor=true' \\",
|
||||
" -d 'num_before=4' \\",
|
||||
" -d 'num_after=8' \\",
|
||||
' --data-urlencode narrow=\'[{"operand": "Denmark", "operator": "stream"}]\' \\',
|
||||
" -d 'client_gravatar=true' \\",
|
||||
" -d 'apply_markdown=false'",
|
||||
" -d 'apply_markdown=false' \\",
|
||||
" -d 'use_first_unread_anchor=true'",
|
||||
'```'
|
||||
]
|
||||
self.assertEqual(generated_curl_example, expected_curl_example)
|
||||
|
@ -941,10 +941,10 @@ class TestCurlExampleGeneration(ZulipTestCase):
|
|||
'curl -sSX GET -G http://localhost:9991/api/v1/messages \\',
|
||||
' -u BOT_EMAIL_ADDRESS:BOT_API_KEY \\',
|
||||
" -d 'anchor=42' \\",
|
||||
" -d 'use_first_unread_anchor=true' \\",
|
||||
" -d 'num_before=4' \\",
|
||||
" -d 'num_after=8' \\",
|
||||
' --data-urlencode narrow=\'[{"operand": "Denmark", "operator": "stream"}]\'',
|
||||
' --data-urlencode narrow=\'[{"operand": "Denmark", "operator": "stream"}]\' \\',
|
||||
" -d 'use_first_unread_anchor=true'",
|
||||
'```'
|
||||
]
|
||||
self.assertEqual(generated_curl_example, expected_curl_example)
|
||||
|
|
|
@ -37,7 +37,7 @@ def events_register_backend(
|
|||
("notification_settings_null", check_bool),
|
||||
], [
|
||||
# Any new fields of `client_capabilities` should be optional. Add them here.
|
||||
]), default=None, documentation_pending=True),
|
||||
]), default=None),
|
||||
event_types: Optional[Iterable[str]]=REQ(validator=check_list(check_string), default=None),
|
||||
fetch_event_types: Optional[Iterable[str]]=REQ(validator=check_list(check_string), default=None),
|
||||
narrow: NarrowT=REQ(validator=check_list(check_list(check_string, length=2)), default=[]),
|
||||
|
|
Loading…
Reference in New Issue