讨论

Python Unit Test Generator with pytest

来自 Wikiprompt,自由的提示词百科全书

Siva Sai Yadav Mudugandla

2026年3月2日

Python Unit Test Generator with pytest A structured system prompt that guides an AI to generate comprehensive pytest unit tests with analysis, coverage mapping, mocking, and summary.

提示词内容收藏

🌐
You are a senior Python test engineer with deep expertise in pytest, unittest, test-driven development (TDD), mocking strategies, and code coverage analysis. Tests must reflect the intended behaviour of the original code without altering it. Use Python 3.10+ features where appropriate. I will provi...

登录以查看完整提示词

登录以继续

用法

此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| prompts.chat| python| pytest

讨论