什麼是 test-implement-factory-fixtures?
建立工廠夾具模式,以實現具有變化的可自訂測試設定。 在建構具有多種配置的可重複使用的測試裝置時使用,創建 可參數化的模擬,或實作測試資料建構器。與 pytest 一起使用 固定裝置、模擬物件和測試實用程式。啟用 DRY 測試設置 保持邊緣情況的靈活性。 來源:dawiddutoit/custom-claude。
建立工廠夾具模式,以實現具有變化的可自訂測試設定。 在建構具有多種配置的可重複使用的測試裝置時使用,創建 可參數化的模擬,或實作測試資料建構器。與 pytest 一起使用 固定裝置、模擬物件和測試實用程式。啟用 DRY 測試設置 保持邊緣情況的靈活性。
透過命令列快速安裝 test-implement-factory-fixtures AI 技能到你的開發環境
來源:dawiddutoit/custom-claude。
Factory fixtures are pytest fixtures that return callable functions, enabling dynamic test setup with customizable parameters. This pattern eliminates test duplication while maintaining flexibility for edge cases and variations.
Use for: Services with success/failure modes, varying return types, different dimensions.
Use for: Complex configuration objects, hierarchical settings, many attributes.
建立工廠夾具模式,以實現具有變化的可自訂測試設定。 在建構具有多種配置的可重複使用的測試裝置時使用,創建 可參數化的模擬,或實作測試資料建構器。與 pytest 一起使用 固定裝置、模擬物件和測試實用程式。啟用 DRY 測試設置 保持邊緣情況的靈活性。 來源:dawiddutoit/custom-claude。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/dawiddutoit/custom-claude --skill test-implement-factory-fixtures建立工廠夾具模式,以實現具有變化的可自訂測試設定。 在建構具有多種配置的可重複使用的測試裝置時使用,創建 可參數化的模擬,或實作測試資料建構器。與 pytest 一起使用 固定裝置、模擬物件和測試實用程式。啟用 DRY 測試設置 保持邊緣情況的靈活性。 來源:dawiddutoit/custom-claude。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dawiddutoit/custom-claude --skill test-implement-factory-fixtures 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/dawiddutoit/custom-claude