Want to disable signals in Django testing
I found this question when looking to disable a signal for a set of test cases and Germano’s answer lead me to the solution but it takes the opposite approach so I thought I’d add it. In your test class: class MyTest(TestCase): def setUp(self): # do some setup signals.disconnect(listener, sender=FooModel) Instead of adding decision code … Read more