Django Targeted Mocking

Mock Django test boundaries safely with override_settings, pytest settings, autospecced unittest.mock objects, output/input capture, requests-mock, VCR.py, outbound HTTP blocking, and time-freezing tools. Use when tests need to replace settings, HTTP calls, time, command output, stdin, or external services without broad fragile MagicMock patches.

thedixitjain 94d3e28 2 files · 5.1 KB Updated 2 repo stars

File contents

thedixitjain/the-mega-skill-library/tree/main/library/testing-and-qa/django-targeted-mocking commit 94d3e28472

Frequently asked questions

npx skillmds add thedixitjain/django-targeted-mocking