跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Pytest

技能 已验证 活跃

pytest - Python's most powerful testing framework with fixtures, parametrization, plugins, and framework integration for FastAPI, Django, Flask

目的

To serve as a definitive guide for professional Python testing with pytest, enabling developers to write robust, efficient, and maintainable tests.

功能

  • Detailed pytest usage with fixtures and parametrization
  • Framework integration for FastAPI, Django, Flask
  • Examples for async testing, mocking, and coverage
  • Guidance on test organization and markers

使用场景

  • Writing unit and integration tests for Python projects
  • Implementing Test-Driven Development (TDD) workflows
  • Testing asynchronous Python code and APIs
  • Setting up and configuring complex testing scenarios

非目标

  • Executing tests directly
  • Providing a testing environment
  • Covering specific project build or deployment processes

安装

npx skills add bobmatnyc/claude-mpm-skills

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交29 days ago
星标44
许可证MIT
状态
查看源代码