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

March 25, 2024

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

https://mastodon.social/@[email protected]