·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