docs: Make delete-message use curl example system.

This commit is contained in:
Vishnu Ks 2019-10-09 09:04:58 +00:00 committed by Tim Abbott
parent 0dccebbe39
commit ed2e89f167
2 changed files with 2 additions and 4 deletions

View File

@ -19,10 +19,7 @@ the Zulip Help Center.
{tab|curl} {tab|curl}
``` curl {generate_code_example(curl)|/messages/{message_id}:delete|example}
curl -X DELETE {{ api_url }}/v1/messages/{message_id} \
-u BOT_EMAIL_ADDRESS:BOT_API_KEY \
```
{end_tabs} {end_tabs}

View File

@ -22,6 +22,7 @@ exclude_list = [
# state of the DB. This results in the curl request to fail. # state of the DB. This results in the curl request to fail.
'get-raw-message.md', 'get-raw-message.md',
'update-message.md', 'update-message.md',
'delete-message.md',
] ]
def test_generated_curl_examples_for_success(client: Client) -> None: def test_generated_curl_examples_for_success(client: Client) -> None: