#StackBounty: #python #unit-testing #testing #automated-tests #tdd should test static text for tdd for example email subject?

Bounty: 50

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);


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.