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.

test_urls: Skip `api_docs/unmerged.d/` while testing api doc pages.

Prakhar Pratyush870591e2e513
diff --git a/zerver/tests/test_urls.py b/zerver/tests/test_urls.py
index a279b965339..8dcf0c1d498 100644
--- a/zerver/tests/test_urls.py
+++ b/zerver/tests/test_urls.py
@@ -30,13 +30,13 @@ class PublicURLTest(ZulipTestCase):
def test_api_doc_pages(self) -> None:
# Test all files in api_docs documentation directory (except for 'index.md',
- # 'missing.md', "api-doc-template.md" and `api_docs/include/` files).
+ # 'missing.md', "api-doc-template.md", `api_docs/include/` and `api_docs/unmerged.d/` files).
api_doc_urls = []
for doc in os.listdir("./api_docs/"):
if doc.startswith(".") or "~" in doc or "#" in doc:
continue # nocoverage -- just here for convenience
- if doc in {"index.md", "include", "missing.md", "api-doc-template.md"}:
+ if doc in {"index.md", "include", "missing.md", "api-doc-template.md", "unmerged.d"}:
continue
url = "/api/" + os.path.splitext(doc)[0] # Strip the extension.
api_doc_urls.append(url)