·pytest-backend-testing
</>

pytest-backend-testing

FastAPI 后端的综合 pytest 测试指南。涵盖单元测试、集成测试、异步模式、模拟、固定装置、覆盖率以及使用 TestClient 进行的 FastAPI 特定测试。在为后端服务、存储库或 API 路由编写或更新测试代码时使用。

6安装·0热度·@chacha95

安装

$npx skills add https://github.com/chacha95/advanced-harness --skill pytest-backend-testing

如何安装 pytest-backend-testing

通过命令行快速安装 pytest-backend-testing AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/chacha95/advanced-harness --skill pytest-backend-testing
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:chacha95/advanced-harness。

SKILL.md

查看原文

Complete guide for writing comprehensive tests for FastAPI backend applications using pytest, pytest-asyncio, and FastAPI TestClient. Emphasizes async testing, proper mocking, layered testing (repository → service → router), and achieving high test coverage.

| Understand test structure | testing-architecture.md | | Write unit tests | unit-testing.md | | Write integration tests | integration-testing.md | | Test async code | async-testing.md | | Use mocks and fixtures | mocking-fixtures.md | | Improve coverage | coverage-best-practices.md | | Test FastAPI routes | fastapi-testing.md |

Skill Status: Modular structure with progressive loading for optimal context management

FastAPI 后端的综合 pytest 测试指南。涵盖单元测试、集成测试、异步模式、模拟、固定装置、覆盖率以及使用 TestClient 进行的 FastAPI 特定测试。在为后端服务、存储库或 API 路由编写或更新测试代码时使用。 来源:chacha95/advanced-harness。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/chacha95/advanced-harness --skill pytest-backend-testing
分类
</>开发工具
认证
收录时间
2026-02-22
更新时间
2026-03-10

Browse more skills from chacha95/advanced-harness

快速解答

什么是 pytest-backend-testing?

FastAPI 后端的综合 pytest 测试指南。涵盖单元测试、集成测试、异步模式、模拟、固定装置、覆盖率以及使用 TestClient 进行的 FastAPI 特定测试。在为后端服务、存储库或 API 路由编写或更新测试代码时使用。 来源:chacha95/advanced-harness。

如何安装 pytest-backend-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/chacha95/advanced-harness --skill pytest-backend-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/chacha95/advanced-harness

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-22