·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