mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
test: track current release in native guide contract
Signed-off-by: LauraGPT <[email protected]>
This commit is contained in:
@@ -10,6 +10,7 @@ from bs4 import BeautifulSoup
|
||||
|
||||
SITE = Path(__file__).resolve().parents[1]
|
||||
ROOT = SITE.parents[1]
|
||||
RELEASE_VERSION = (ROOT / "funasr/version.txt").read_text().strip()
|
||||
sys.path.insert(0, str(SITE))
|
||||
from build import build
|
||||
from export_docs import export_documentation
|
||||
@@ -123,7 +124,7 @@ def test_readme_news_stays_three_items_with_native_guide(name, heading):
|
||||
bullets = re.findall(r"^- .*", section, re.M)
|
||||
assert len(bullets) == 3
|
||||
assert any("Transformers" in row and "transformers_native" in row for row in bullets)
|
||||
assert any("1.4.15" in row for row in bullets)
|
||||
assert any(RELEASE_VERSION in row for row in bullets)
|
||||
assert any("MOSS" in row for row in bullets)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user