·pytest-test-data-factories
{}

pytest-test-data-factories

创建可重用测试数据的模式:领域对象的工厂函数、复杂对象的构建器模式、夹具工厂、参数化测试数据、测试数据继承和类型安全测试数据生成器。在重复创建测试数据、构建具有许多可选字段的对象或生成实际测试数据集时使用。 使用时机:编写需要域对象的测试、为多个测试创建固定装置、使用默认值生成测试数据、使用可选字段构建复杂对象或使用各种数据参数化测试。

5安装·0热度·@dawiddutoit

安装

$npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-test-data-factories

如何安装 pytest-test-data-factories

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

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

来源:dawiddutoit/custom-claude。

SKILL.md

查看原文

Test data factories eliminate duplication and make tests more maintainable. Instead of recreating Order objects with the same fields in every test, factories provide sensible defaults and allow customization only where needed.

创建可重用测试数据的模式:领域对象的工厂函数、复杂对象的构建器模式、夹具工厂、参数化测试数据、测试数据继承和类型安全测试数据生成器。在重复创建测试数据、构建具有许多可选字段的对象或生成实际测试数据集时使用。 使用时机:编写需要域对象的测试、为多个测试创建固定装置、使用默认值生成测试数据、使用可选字段构建复杂对象或使用各种数据参数化测试。 来源:dawiddutoit/custom-claude。

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

安全认证,代码可靠安全 一键安装,配置简单 兼容 Claude Code、Cursor、OpenClaw 等工具

可引用信息

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

安装命令
npx skills add https://github.com/dawiddutoit/custom-claude --skill pytest-test-data-factories
分类
{}数据分析
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from dawiddutoit/custom-claude

快速解答

什么是 pytest-test-data-factories?

创建可重用测试数据的模式:领域对象的工厂函数、复杂对象的构建器模式、夹具工厂、参数化测试数据、测试数据继承和类型安全测试数据生成器。在重复创建测试数据、构建具有许多可选字段的对象或生成实际测试数据集时使用。 使用时机:编写需要域对象的测试、为多个测试创建固定装置、使用默认值生成测试数据、使用可选字段构建复杂对象或使用各种数据参数化测试。 来源:dawiddutoit/custom-claude。

如何安装 pytest-test-data-factories?

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

这个 Skill 的源码在哪?

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