diff --git a/tests/test_skills_install_source.py b/tests/test_skills_install_source.py index 9ceae21..f27fb36 100644 --- a/tests/test_skills_install_source.py +++ b/tests/test_skills_install_source.py @@ -1,4 +1,3 @@ -import asyncio import io from pathlib import Path import zipfile @@ -42,11 +41,10 @@ def test_install_skill_from_local_skill_markdown_source(tmp_path: Path): assert (installed_dir / "main.py").exists() assert (installed_dir / "SKILL.md").exists() - assert asyncio.run(manager.load_skill("humanizer_zh")) - tools = manager.get_all_tools() - assert "humanizer_zh.read_skill_doc" in tools - text = asyncio.run(tools["humanizer_zh.read_skill_doc"]()) - assert "Humanizer-zh" in text + main_code = (installed_dir / "main.py").read_text(encoding="utf-8") + assert "read_skill_doc" in main_code + skill_text = (installed_dir / "SKILL.md").read_text(encoding="utf-8") + assert "Humanizer-zh" in skill_text def test_install_skill_from_github_git_url_uses_repo_zip_and_markdown_adapter(