Opened 16 years ago

Closed 16 years ago

#10818 closed (invalid)

auth tests fail for projects which override registration templates

Reported by: Chris Beaven Owned by: Chris Beaven
Component: contrib.auth Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The problem is due to the now loudly failing {% url %} tag. If you override a registration template with one which uses a URL tag, you'll end up with your project tests failing loudly for the contrib.auth tests.

The solution is to put default templates in the test directory (and make sure all the tests use them)

Attachments (1)

10818.diff (4.0 KB ) - added by Chris Beaven 16 years ago.

Download all attachments as: .zip

Change History (4)

by Chris Beaven, 16 years ago

Attachment: 10818.diff added

comment:1 by Chris Beaven, 16 years ago

Summary: auth tests fail due to overridden templatesauth tests fail for projects which override registration templates
Triage Stage: UnreviewedReady for checkin

(preview doesn't show that the new files actually contain {{ form.as_ul }})

This issue has bugged me on multiple projects, and this simple fix makes it work across the board.
I'll just be brash and push this direct to ready for checkin. Feel free to slap me round if it's not, committers :P

comment:2 by Chris Beaven, 16 years ago

Owner: changed from nobody to Chris Beaven
Status: newassigned

comment:3 by Chris Beaven, 16 years ago

Resolution: invalid
Status: assignedclosed

Yawn... I should really svn up before I start working on things, fixed as a side effect by #10747

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