Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

doc tests: Reduce work for test_api_doc_endpoints.

Steve Howell6c23e4769d28
diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py
index 05856e2e4b0..4fa12f706a7 100644
--- a/zerver/tests/test_docs.py
+++ b/zerver/tests/test_docs.py
@@ -181,7 +181,15 @@ class DocPageTest(ZulipTestCase):
for endpoint in endpoint_list:
url = f"/api/{endpoint}"
- self._test(url, "", doc_html_str=True)
+ self._test_normal_path(
+ url=url,
+ expected_content="",
+ extra_strings=[],
+ landing_missing_strings=[],
+ landing_page=True,
+ doc_html_str=True,
+ search_disabled=False,
+ )
def test_api_doc_404_status_codes(self) -> None:
result = self.client_get(