mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
test(docs): require MOSS README model zoo entries (#3634)
Signed-off-by: LauraGPT <[email protected]> Co-authored-by: LauraGPT <[email protected]>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user