tests: Remove update-subscription-data from curl test exclude_list.

This commit is contained in:
Vishnu Ks 2019-10-23 07:16:46 +00:00 committed by Tim Abbott
parent eb567abcec
commit db294072be
2 changed files with 11 additions and 1 deletions

View File

@ -85,3 +85,14 @@ def get_denmark_stream_id_and_topic() -> Dict[str, Any]:
"stream_id": helpers.get_stream_id(stream_name),
"topic_name": topic_name,
}
@openapi_param_value_generator(["/users/me/subscriptions/properties:post"])
def update_subscription_data() -> Dict[str, List[Dict[str, Any]]]:
helpers.subscribe(get_user("default-bot@zulip.com", get_realm("zulip")), "Verona")
helpers.subscribe(get_user("default-bot@zulip.com", get_realm("zulip")), "social")
return {
"subscription_data": [
{"stream_id": helpers.get_stream_id("Verona"), "property": "pin_to_top", "value": True},
{"stream_id": helpers.get_stream_id("social"), "property": "color", "value": "#f00f00"}
]
}

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',
'update-subscription-properties.md',
'remove-subscriptions.md',
'get-stream-topics.md',
'delete-stream.md',