在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用cime-unit-test
星标171
分支221
更新时间2026年4月29日 18:42
Use when writing/modifying CIME unit tests.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Use when writing/modifying CIME unit tests.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cime-unit-test |
| description | Use when writing/modifying CIME unit tests. |
Use this skill when writing/modifying python unit tests under CIME/tests that are prefixed with test_unit.
Do not use this skill to write sys (end-to-end) tests.
pytest, pytest-covFollow this exact order within every test method:
# Context
values = ["a", "b", "c"]
env_mach = EnvMach()
# Mocks
env = MagicMock()
# Act
output = env_mach.get_values(values, env=env)
# Assert
assert output != None
env.assert_called_with()
CIME/tests.test_unit_<class>.pytest_<unit>_<condition>./scripts/query_config --machines
pytest --machine <machine> CIME/tests/test_unit_<class>.py --cov=<module> --cov-report term-missing