Posts from blog by tag mock:
Why Django's override_settings Sometimes Fails (and How reload + patch Saved Me)
Sometimes @override_settings just doesn’t cut it.
I ran into a nasty issue while testing a Django module that relies on global state initialized during import. The usual test approach didn’t work. Here’s what happened and how I solved it.
Read more

