Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

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.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly