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.

dagster-io Updated

File contents

dagster-io/fake-driven-testing/tree/main/skills/fdt-refactor-mock-to-fake commit dfd6e4b1aa

Frequently asked questions

npx skillmds@latest add dagster-io/fdt-refactor-mock-to-fake