Opened 4 years ago

Closed 4 years ago

#16363 closed Bug (fixed)

Wrong unittests for create_user with no email address

Reported by: EnTeQuAk 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 4 years ago by EnTeQuAk

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Wron unittests for create_user with no email address to Wrong unittests for create_user with no email address

comment:2 Changed 4 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [16478]:

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

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