#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 , 17 years ago
| Component: | Uncategorized → Authentication |
|---|---|
| Owner: | removed |
comment:2 by , 17 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Well, it works for me. Please post the settings you used for the test and re-open the ticket.
Note:
See TracTickets
for help on using tickets.
I forgot set the component to Authentication.