Skip to content
Advertisement

Tag: tdd

Proper way to test Django signals

I’m trying to test sent signal and it’s providing_args. Signal triggered inside contact_question_create view just after form submission. My TestCase is something like: Is this the proper way to test this signal? Any better ideas? Answer I’ve resolved the problem by myself. I think that the best solution is following:

Advertisement