diff --git a/zerver/openapi/curl_param_value_generators.py b/zerver/openapi/curl_param_value_generators.py index 6c5f91d801..e9e63e58a6 100644 --- a/zerver/openapi/curl_param_value_generators.py +++ b/zerver/openapi/curl_param_value_generators.py @@ -97,6 +97,16 @@ def update_subscription_data() -> Dict[str, List[Dict[str, Any]]]: ] } +@openapi_param_value_generator(["/users/me/subscriptions:delete"]) +def delete_subscription_data() -> Dict[str, List[Dict[None, None]]]: + iago = helpers.example_user("iago") + zoe = helpers.example_user("ZOE") + helpers.subscribe(iago, "Verona") + helpers.subscribe(iago, "social") + helpers.subscribe(zoe, "Verona") + helpers.subscribe(zoe, "social") + return {} + @openapi_param_value_generator(["/events:get"]) def get_events() -> Dict[str, Any]: profile = helpers.example_user("iago") diff --git a/zerver/openapi/test_curl_examples.py b/zerver/openapi/test_curl_examples.py index aed9b4aa93..e55e996d10 100644 --- a/zerver/openapi/test_curl_examples.py +++ b/zerver/openapi/test_curl_examples.py @@ -14,7 +14,6 @@ exclude_list = [ # The endpoint in these docs expect one or more param values that reflects the DB state. # 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. - 'remove-subscriptions.md', 'delete-stream.md', 'create-user-group.md', 'update-user-group.md',