diff --git a/zerver/openapi/test_curl_examples.py b/zerver/openapi/test_curl_examples.py index ee26aef00f..321f66a6e0 100644 --- a/zerver/openapi/test_curl_examples.py +++ b/zerver/openapi/test_curl_examples.py @@ -4,6 +4,7 @@ import shlex import subprocess import markdown import os +import html from zulip import Client from zerver.lib.bugdown import api_code_examples @@ -44,7 +45,8 @@ def test_generated_curl_examples_for_success(client: Client) -> None: # markdown rendering pipeline to compute the user-facing # example, and then run that to test it. curl_command_html = md_engine.convert(line.strip()) - curl_command_text = curl_command_html[len("
curl\n"):-len("
curl\n"):-len("