mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 21:27:02 +01:00
mock.patch pins a name to the module it is patched on. A function that moves resolves collaborators through its new module's globals, so the patch stops reaching it -- the failure is either AttributeError or, worse, a real call to what should have been mocked. This governs brother_printer (15 files, ~90 patched names) and probably code_tutor. The grep to run first is in the doc. Also records the user's decision: editing tests to follow moved code is allowed, bounded by no assertion changed, nothing deleted or weakened, and an identical pass count. The alternative was ~8 delegate stubs per file. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY |
||
|---|---|---|
| .. | ||
| cleanup-2026-05 | ||
| explanations | ||
| superpowers | ||
| device-owner-wipe-checklist.md | ||
| dns-filtering-parked.md | ||
| mcp-shortlist.html | ||
| python-split-recipes.md | ||
| syncyomi-restore-runbook.md | ||