test-refactoring
CommunityStreamline tests, reduce duplication.
Authorfruch
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenges of overly large, duplicated, and hard-to-maintain Python test suites, making them more readable, efficient, and easier to manage.
Core Features & Use Cases
- Parametrization: Consolidates repetitive test functions into single, parametrized tests using
pytest.mark.parametrize. - Sync/Async Deduplication: Merges mirrored sync and async test classes into a single test function using helpers like
_maybe_await. - Modularization: Guides the splitting of large test files into smaller, focused modules based on feature areas.
- Use Case: Refactor a test file with over 700 lines and many copy-pasted test functions into a more maintainable structure with parametrized tests and smaller modules.
Quick Start
Use the test-refactoring skill to refactor the file 'tests/test_cql_builder.py' by applying parametrization patterns.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: test-refactoring Download link: https://github.com/fruch/coodie/archive/main.zip#test-refactoring Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.