unit-testing
Installation
SKILL.md
What I do
- Write effective unit tests
- Structure test suites
- Use test doubles (mocks, stubs, fakes)
- Test edge cases and errors
- Achieve good coverage
- Use parameterized tests
- Write readable tests
- Follow testing best practices
When to use me
When writing unit tests or improving test coverage.
Unit Test Structure
import pytest
from unittest.mock import Mock, patch, MagicMock
from dataclasses import dataclass