Opened 5 years ago

Closed 5 years ago

#16363 closed Bug (fixed)

Wrong unittests for create_user with no email address

Reported by: Christopher Grebs Owned by: nobody
Component: contrib.auth Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

See https://code.djangoproject.com/changeset/16472#file1

I suggest a

self.assertEqual(u.email, '')

was meant to properly test that line.

Best regards,
Christopher.

Change History (2)

comment:1 Changed 5 years ago by Christopher Grebs

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Summary: Wron unittests for create_user with no email addressWrong unittests for create_user with no email address

comment:2 Changed 5 years ago by Jannis Leidel

Resolution: fixed
Status: newclosed

In [16478]:

Fixed #16363 -- Fixed tests introduced in r16472. Thanks, EnTeQuAk.

Note: See TracTickets for help on using tickets.
Back to Top