Skip to main content
Exécutez n'importe quel Skill dans Manus
en un clic

fdt-refactor-mock-to-fake

// Refactor tests that use unittest.mock.patch or MagicMock into erk's gateway-based fake pattern. Use when tests import unittest.mock, use @patch decorators, or directly call mock.patch() as context managers. Essential when test_*.py files patch module-level attributes like subprocess.run, shutil.which, os.environ, or other system calls. Covers both making source code injectable AND rewriting tests.

$ git log --oneline --stat
stars:0
forks:0
updated:19 mars 2026 à 00:19
SKILL.md
readonly