test-fix
Installation
SKILL.md
test-fix
Diagnose and fix failing tests following pplx-sdk testing conventions.
When to use
Use this skill when pytest tests fail and you need to identify the root cause and apply the correct fix.
Instructions
- Read the failure output carefully — identify the root cause (assertion error, import error, missing mock, timeout, etc.).
- Locate the source code the test exercises — the fix may be in the source, not the test itself.
- Follow existing patterns: Look at passing tests in the same file for mock setup and assertion style.
- Preserve test intent: Never weaken assertions to make tests pass. Fix the underlying issue.
- Run the fix: Execute
pytest tests/<file> -vto confirm the fix works.