Python 单元测试
来自 Wikiprompt,自由的提示词百科全书
Python 单元测试 使用 PyTest 自动生成测试。
提示词内容
此提示词为英文——适用于所有 AI 模型。
Write comprehensive unit tests for the following Python function using PyTest. Include edge cases and error handling.
登录后即可复制此提示词并保存到你的收藏
登录用法
此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。
为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。
参考资料
- 分类: coding Prompts
- Original view: View on Wikiprompt