Hi everyone!
I am happy to be part of this forum. I would like to ask some may be a bit newbie question.
How I can unit test uwsgi task defined this way:
@cron(-1, -1, -1, -1, -1, target='spooler')
def send_mail(signum):
"""Send email every minute if any."""
from django.core.management import call_command
call_command('send_mail')
This cron is executed only when uwsgi is running.
On the other hand, coverage shows me that this line
is missed, i.e. not tested.
How I can test this code/line ?