python-test-updater
Installation
SKILL.md
Python Test Updater
Same triage discipline as → java-test-updater. Python differences: no compile-time breaks (everything fails at runtime), more mocker.patch coupling, and snapshot libraries make some updates one command.
Python failure taxonomy
No compile step means everything surfaces at test runtime:
| Failure | Python-specific signal | Action |
|---|---|---|
AttributeError: 'X' has no attribute 'foo' |
Renamed/removed method | Update call site |
TypeError: f() missing 1 positional argument |
Signature changed | Add arg or use default |
TypeError: f() got an unexpected keyword |
Kwarg renamed/removed | Update kwarg |
ImportError / ModuleNotFoundError |
Module moved | Update import |
AssertionError with value diff |
Behavior changed (intentional?) or regression | Triage |
AssertionError: Expected 'mock' to be called |
Over-mocked internal | Loosen/delete mock |
AssertionError in snapshot compare |
Snapshot stale | Review diff, --snapshot-update if intentional |