mercredi 15 août 2018

should test static text for tdd for example email subject?

Im not sure if should test static text for tdd for example email subject

for example i have the next piece of code is necessary add a test for including proper subject? or proper "from" param?

def send_mail_complete_sectors_and_profile():
    agents = Agents.objects.filter(
        Q(is_completed_profile=False) |
        Q(has_sectors_config=False)
    )
    agent_emails = map(lambda a: a.email1, agents)
    send_mail('', '', '', agent_emails);

Aucun commentaire:

Enregistrer un commentaire