{"enrichment":{"faq":[{"a":"Test Implement Constructor Validation automates the creation of constructor validation tests for Python service classes. It analyzes service __init__ methods to generate pytest test cases that verify required parameters raise ValueError when None, following the fail-fast principle.","q":"What does Test Implement Constructor Validation do?"},{"a":"Test Implement Constructor Validation generates pytest test cases automatically by analyzing your service class __init__ methods. The skill creates tests that verify each required parameter raises ValueError when passed None, ensuring your constructors validate inputs before proceeding with initialization.","q":"How do I implement constructor validation in my code?"},{"a":"Test Implement Constructor Validation generates pytest test cases tailored to your service classes. Each example verifies that required constructor parameters properly raise ValueError when None is passed, demonstrating the fail-fast validation pattern for parameter checking.","q":"What constructor validation testing examples does this skill provide?"},{"a":"Test Implement Constructor Validation follows best practices by enforcing fail-fast validation: required parameters must raise ValueError when None before any other initialization occurs. This prevents invalid state propagation and ensures your service classes catch configuration errors immediately at construction time.","q":"What are constructor validation best practices?"},{"a":"Test Implement Constructor Validation creates pytest test cases that systematically validate each constructor parameter. The generated tests verify that passing None to required parameters triggers ValueError, confirming your validation logic works correctly and prevents invalid service instances from being created.","q":"How can I test constructor parameter validation?"},{"a":"Test Implement Constructor Validation implements the fail-fast pattern: required parameters are validated in __init__ to raise ValueError when None, preventing invalid object construction. This pattern ensures service classes maintain invariants from instantiation and catches configuration errors at the earliest point.","q":"What constructor validation patterns does this skill use?"}],"shadow_tags":["parameter-validation","constructor-testing","input-verification","object-initialization","validation-patterns","defensive-programming","test-implementation"],"summary_rewrite":"This skill automates the creation of constructor validation tests for Python service classes. It analyzes service __init__ methods to generate pytest test cases that verify required parameters raise ValueError when None, following the fail-fast principle."},"gist":{"api_url":"https://skillfed.io/api/skills/dawiddutoit/custom-claude/test-implement-constructor-validation.json","as_of":"2026-01-26","description":"Test Implement Constructor Validation auto-generates pytest tests that verify service constructors properly.","install":{"manual":["git clone https://github.com/dawiddutoit/custom-claude","cp -r custom-claude ~/.claude/skills/test-implement-constructor-validation"],"primary":"npx skillfed install dawiddutoit/custom-claude/test-implement-constructor-validation","version":"c1681aa7"},"kind":"skill","mirror_url":"https://skillfed.io/dawiddutoit/custom-claude/test-implement-constructor-validation.md","similar":[{"id":"xu-xiang/everything-claude-code-zh/python-testing","name":"python-testing","publisher":"xu-xiang/everything-claude-code-zh","url":"https://skillfed.io/xu-xiang/everything-claude-code-zh/python-testing"},{"id":"LambdaTest/agent-skills/pytest-skill","name":"pytest-skill","publisher":"LambdaTest/agent-skills","url":"https://skillfed.io/LambdaTest/agent-skills/pytest-skill"},{"id":"affaan-m/ECC/python-testing","name":"python-testing","publisher":"affaan-m/ECC","url":"https://skillfed.io/affaan-m/ECC/python-testing"},{"id":"majesticlabs-dev/majestic-marketplace/pytest-coder","name":"Pytest Coder","publisher":"majesticlabs-dev/majestic-marketplace","url":"https://skillfed.io/majesticlabs-dev/majestic-marketplace/pytest-coder"},{"id":"dawiddutoit/custom-claude/test-setup-async","name":"Test Setup Async","publisher":"dawiddutoit/custom-claude","url":"https://skillfed.io/dawiddutoit/custom-claude/test-setup-async"}],"title":"Test Implement Constructor Validation by dawiddutoit \u2014 SkillFed","use":{"when":["Test Implement Constructor Validation generates pytest test cases automatically by analyzing your service class __init__ methods.","Test Implement Constructor Validation generates pytest test cases tailored to your service classes."]},"what":{"lead":"Test Implement Constructor Validation auto-generates pytest tests that verify service constructors properly validate required parameters.","rest":"This skill automates the creation of constructor validation tests for Python service classes. It analyzes service __init__ methods to generate pytest test cases that verify required parameters raise ValueError when None, following the fail-fast principle."}},"id":"dawiddutoit/custom-claude/test-implement-constructor-validation","install":{"mode":"external","repo":"https://github.com/dawiddutoit/custom-claude"},"links":{"html":"https://skillfed.io/dawiddutoit/custom-claude/test-implement-constructor-validation","md":"https://skillfed.io/dawiddutoit/custom-claude/test-implement-constructor-validation.md","repo":"https://github.com/dawiddutoit/custom-claude"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":0,"language":"Python","last_updated":"2026-01-26","license":null,"name":"Test Implement Constructor Validation","publisher":"dawiddutoit","stars":1},"relations":{"similar":[{"id":"xu-xiang/everything-claude-code-zh/python-testing"},{"id":"LambdaTest/agent-skills/pytest-skill"},{"id":"dawiddutoit/custom-claude/implement-repository-pattern"},{"id":"affaan-m/ECC/python-testing"},{"id":"dawiddutoit/custom-claude/test-organize-layers"},{"id":"majesticlabs-dev/majestic-marketplace/pytest-coder"},{"id":"dawiddutoit/custom-claude/test-setup-async"},{"id":"dawiddutoit/custom-claude/python-best-practices-async-context-manager"},{"id":"HermeticOrmus/LibreUIUX-Claude-Code/python-testing-patterns"},{"id":"dawiddutoit/custom-claude/implement-cqrs-handler"}]},"slug":{"owner":"dawiddutoit","repo":"custom-claude","skill":"test-implement-constructor-validation"},"version":"c1681aa7"}
