Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#7891 closed (worksforme)

Auth Test Suite not always valid

Reported by: Adrian Ribao Owned by:
Component: contrib.auth Version: master
Severity: Keywords: testcase test authentication email not found
Cc: aribao@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Hello, the PasswordReset TestCase is not always valid, specifically the:

def test_email_not_found(self):
        "Error is raised if the provided email address isn't currently registered"
        response = self.client.get('/password_reset/')
        self.assertEquals(response.status_code, 200)
        response ='/password_reset/', {'email': ''})
        self.assertContains(response, "That e-mail address doesn't have an associated user account")
        self.assertEquals(len(mail.outbox), 0)

In my case, the url /password_reset/ doesn't exist.

Change History (3)

comment:1 Changed 10 years ago by Adrian Ribao

Component: UncategorizedAuthentication
Owner: nobody deleted

I forgot set the component to Authentication.

comment:2 Changed 10 years ago by Michael Radziej

Resolution: worksforme
Status: newclosed

Well, it works for me. Please post the settings you used for the test and re-open the ticket.

comment:3 Changed 10 years ago by Russell Keith-Magee

I suspect this report is a duplicate of issue #7521, fixed in [7805].

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