forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Remove update-subscription-data from curl test exclude_list.
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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("[email protected]", get_realm("zulip")), "Verona") | ||
helpers.subscribe(get_user("[email protected]", 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"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters