·pytest-async-testing
</>

pytest-async-testing

提供使用 pytest 測試非同步 Python 程式碼的完整模式:pytest-asyncio 配置、AsyncMock 使用、非同步固定裝置、使用 AsyncClient 測試 FastAPI、測試 Kafka 非同步生產者/消費者、事件循環和清理模式。 使用時機:測試非同步函數、非同步用例、FastAPI 端點、非同步資料庫操作、Kafka 非同步客戶端或任何非同步/等待程式碼模式。

6安裝·0熱度·@dawiddutoit

安裝

$npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-async-testing

如何安裝 pytest-async-testing

透過命令列快速安裝 pytest-async-testing AI 技能到你的開發環境

  1. 開啟終端機: 開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 執行安裝指令: 複製並執行以下指令:npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-async-testing
  3. 驗證安裝: 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

來源:dawiddutoit/custom-claude。

SKILL.md

查看原文

Async testing requires special handling of event loops, context managers, and async fixtures. This skill provides production-ready patterns for testing all async scenarios in modern Python.

提供使用 pytest 測試非同步 Python 程式碼的完整模式:pytest-asyncio 配置、AsyncMock 使用、非同步固定裝置、使用 AsyncClient 測試 FastAPI、測試 Kafka 非同步生產者/消費者、事件循環和清理模式。 使用時機:測試非同步函數、非同步用例、FastAPI 端點、非同步資料庫操作、Kafka 非同步客戶端或任何非同步/等待程式碼模式。 來源:dawiddutoit/custom-claude。

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-async-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

安全認證,程式碼可靠安全 一鍵安裝,設定簡單 相容 Claude Code、Cursor、OpenClaw 等工具

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-async-testing
分類
</>開發工具
認證
收錄時間
2026-02-25
更新時間
2026-03-10

Browse more skills from dawiddutoit/custom-claude

快速解答

什麼是 pytest-async-testing?

提供使用 pytest 測試非同步 Python 程式碼的完整模式:pytest-asyncio 配置、AsyncMock 使用、非同步固定裝置、使用 AsyncClient 測試 FastAPI、測試 Kafka 非同步生產者/消費者、事件循環和清理模式。 使用時機:測試非同步函數、非同步用例、FastAPI 端點、非同步資料庫操作、Kafka 非同步客戶端或任何非同步/等待程式碼模式。 來源:dawiddutoit/custom-claude。

如何安裝 pytest-async-testing?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-async-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

這個 Skill 的原始碼在哪?

https://github.com/dawiddutoit/custom-claude