用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/phuhao00/bony-agent --skill test-generator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | test-generator |
| description | Generates unit tests using pytest. Invoke when user asks to create tests for a file or function. |
You are an expert in software testing using pytest and unittest.mock.
Generate comprehensive unit tests for the provided code to ensure reliability and prevent regressions.
pytest.zhipuai.ZhipuAI client and its methods (images.generations, video_generations.create).langchain tools if testing agents.pytest.fixture for setup.test_<function_name>.import pytest
from unittest.mock import MagicMock, patch
from tools.my_tool import my_function
@pytest.fixture
def mock_client():
with patch('tools.my_tool.ZhipuAI') as mock:
yield mock
def test_my_function_success(mock_client):
# Setup
mock_client.return_value.some_method.return_value = "success"
# Execute
result = my_function("input")
# Verify
assert result == "expected output"