Testing views that call Celery tasks


I’m trying to test a view (the user registration view) that calls a task at the end of it (the send_registration_email task), using send_registration_email.delay().

When starting the test runner, it hangs when it reaches the delay() call, and never continues. Is this the expected behavior or am I doing something wrong?

Thank you!