From a447e136913987aa5d936ae86eeb64b89a0f2df6 Mon Sep 17 00:00:00 2001 From: LauraGPT <18321252+LauraGPT@users.noreply.github.com> Date: Thu, 3 Sep 2026 08:51:49 +0000 Subject: [PATCH] test(docs): require MOSS README model zoo entries Signed-off-by: LauraGPT <18321252+LauraGPT@users.noreply.github.com> --- tests/test_moss_transcribe_diarize_docs.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/test_moss_transcribe_diarize_docs.py b/tests/test_moss_transcribe_diarize_docs.py index dd20782e1..63a1ed037 100644 --- a/tests/test_moss_transcribe_diarize_docs.py +++ b/tests/test_moss_transcribe_diarize_docs.py @@ -156,6 +156,21 @@ def test_readmes_link_the_runnable_moss_service() -> None: assert "moss_transcribe_diarize" in text +def test_readme_model_zoos_expose_moss_with_its_model_card_and_guide() -> None: + readmes = { + "README.md": "./docs/moss_transcribe_diarize.md", + "README_zh.md": "./docs/moss_transcribe_diarize_zh.md", + "README_ja.md": "./docs/moss_transcribe_diarize.md", + "README_ko.md": "./docs/moss_transcribe_diarize.md", + } + + for name, guide in readmes.items(): + text = (ROOT / name).read_text(encoding="utf-8") + assert "| **MOSS-Transcribe-Diarize** |" in text, name + assert "https://huggingface.co/OpenMOSS-Team/MOSS-Transcribe-Diarize" in text, name + assert guide in text, name + + def test_openai_consumer_docs_expose_moss_alias_and_boundaries() -> None: paths = [ "CLIENTS.md",