在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用test-python-unit
星标0
分支2
更新时间2026年4月15日 18:48
Create python unit tests
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Create python unit tests
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | test-python-unit |
| description | Create python unit tests |
Create pytest unit tests for CLI modules following project testing patterns.
Tests mirror source structure with one folder per source file and one test file per function:
tests/
├── <module_name>/ # One folder per source file
│ ├── __init__.py
│ ├── conftest.py # Fixtures specific to this module
│ ├── test_<function_a>.py # One file per function
│ └── test_<function_b>.py
└── conftest.py # Global fixtures
Example for this project:
tests/
├── conftest.py
├── discovery/
│ ├── test_find_skills.py
│ └── test_find_commands.py
├── paths/
│ ├── test_get_cache_dir.py
│ ├── test_abbrev.py
│ ├── test_require_project_dir.py
│ └── test_add_to_global_skillset.py
├── linking/
│ ├── conftest.py
│ ├── test_fuzzy_match.py
│ ├── test_is_managed_copy.py
│ ├── test_copy_dir.py
│ └── test_link_skills.py
├── manifest/
│ ├── test_load_manifest.py
│ ├── test_record_install.py
│ └── test_get_install_options.py
├── repo/
│ ├── test_parse_repo_spec.py
│ └── test_parse_github_url.py
└── settings/
├── test_load_settings.py
├── test_deep_merge.py
├── test_find_repo_permissions.py
└── test_add_read_permission.py
tmp_path fixture for isolationmonkeypatch to redirect Path.home() and get_git_root()Create ONE test file at a time, following the naming pattern.
uv run pytest <path/to/test_file.py> -v
Fix any warnings before proceeding to next test.
Only then create the next test file.
uv run pytest <path/to/test_file.py> -v # Single file
uv run pytest tests/<module>/ -v # All tests for a module
uv run pytest -v # All tests