Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/test_moss_transcribe_diarize_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading