tests: Remove mark-as-read-bulk from curl test exclude_list.

This commit is contained in:
Vishnu Ks 2019-10-23 07:01:17 +00:00 committed by Tim Abbott
parent 39f7d250bd
commit eb567abcec
2 changed files with 19 additions and 1 deletions

View File

@ -66,3 +66,22 @@ def update_flags_message_ids() -> Dict[str, List[int]]:
return {
"messages": messages,
}
@openapi_param_value_generator(["/mark_stream_as_read:post"])
def get_venice_stream_id() -> Dict[str, int]:
return {
"stream_id": helpers.get_stream_id("Venice"),
}
@openapi_param_value_generator(["/mark_topic_as_read:post"])
def get_denmark_stream_id_and_topic() -> Dict[str, Any]:
stream_name = "Denmark"
topic_name = "Tivoli Gardens"
helpers.subscribe(get_user("default-bot@zulip.com", get_realm("zulip")), stream_name)
helpers.send_stream_message(helpers.example_email("hamlet"), stream_name, topic_name=topic_name)
return {
"stream_id": helpers.get_stream_id(stream_name),
"topic_name": topic_name,
}

View File

@ -15,7 +15,6 @@ exclude_list = [
# We currently get the example values from openapi specs and they don't refelect the
# state of the DB. This results in the curl request to fail.
'delete-message.md',
'mark-as-read-bulk.md',
'update-subscription-properties.md',
'remove-subscriptions.md',
'get-stream-topics.md',