Things I can never remember how to do: Django Signals edition

I am several weeks into working on a project with my colleague, Lacey Henschel. Today, while reviewing one of her pull requests, I was reminded how to test a Django Signal via mocking.

Testing Django signals is valuable to me because I need help remembering how to test a signal, and even with lots of effort, it never works. So bookmark this one, friends. It works.

Thankfully, she wrote it up in one of her TIL: How I set up django-activity-stream, including a simple test

Jeff Triplett @webology