diff --git a/scripts/check_funasr_website_static.py b/scripts/check_funasr_website_static.py index bd2d57bda..22bb5ee5f 100755 --- a/scripts/check_funasr_website_static.py +++ b/scripts/check_funasr_website_static.py @@ -57,7 +57,7 @@ class StaticAssetContract: ), f"{BASE_URL}/ecosystem.html": PageContract( required=( - "35K+", + "36K+", "/donors.html", "LiteLLM", "custom_openai", @@ -67,12 +67,18 @@ class StaticAssetContract: ("FunASR 官方插件 0.1.1", r"FunASR 官方插件 0\.1\.1(?![\w.+-])"), ("最大 25 MB 音频上传", r"最大 (?35K+ +
36K+
功德榜 LiteLLM + FunClip v2.1.1 + audio.cpp + merged PR + pinned guide
custom_openai
54.3K stars
@@ -61,9 +65,13 @@ def test_website_contract_accepts_current_public_copy():
支持最大 25 MB 音频上传
""", "https://www.funasr.com/en/ecosystem.html": """ -
35K+
+
36K+
Thanks LiteLLM + FunClip v2.1.1 + audio.cpp + merged PR + pinned guide
custom_openai
54.3K stars
@@ -276,13 +284,31 @@ def test_website_contract_includes_homepage_entrypoints(): assert "https://www.funasr.com/en/llama-cpp.html" in checker.PAGE_CONTRACTS +def test_ecosystem_contract_requires_current_release_and_native_runtime(): + checker = _load_module() + evidence_links = { + "https://github.com/modelscope/FunClip/releases/tag/v2.1.1", + "https://github.com/0xShug0/audio.cpp", + "https://github.com/0xShug0/audio.cpp/pull/155", + "https://github.com/0xShug0/audio.cpp/blob/1778b23a5f6a4951c788e4bb0e7baa04f20012a2/docs/models/fun_asr_nano.md", + } + + for url in ( + "https://www.funasr.com/ecosystem.html", + "https://www.funasr.com/en/ecosystem.html", + ): + contract = checker.PAGE_CONTRACTS[url] + assert "36K+" in contract.required + assert evidence_links <= set(contract.required_links) + + def test_ecosystem_contract_requires_live_dify_marketplace(): checker = _load_module() url = "https://www.funasr.com/en/ecosystem.html" pages = { url: """ -
35K+
+
36K+
Thanks LiteLLM
custom_openai
@@ -313,9 +339,13 @@ def test_ecosystem_contract_requires_live_dify_marketplace(): def _valid_english_ecosystem_html(): return """ -
35K+
+
36K+
Thanks LiteLLM + FunClip v2.1.1 + audio.cpp + merged PR + pinned guide
custom_openai
54.3K stars