Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7891 closed (worksforme)

Auth Test Suite not always valid

Reported by: Adrian Ribao Owned by:
Component: contrib.auth Version: dev
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

Description

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 = self.client.post('/password_reset/', {'email': 'not_a_real_email@email.com'})
        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 by Adrian Ribao, 16 years ago

Component: UncategorizedAuthentication
Owner: nobody removed

I forgot set the component to Authentication.

comment:2 by Michael Radziej, 16 years ago

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 by Russell Keith-Magee, 16 years ago

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

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