Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#14374 closed (fixed)

Missing templates on contrib.auth makes tests in a new project fail (startproject)

Reported by: Henrique Bastos Owned by: nobody
Component: Contrib apps Version: 1.2
Severity: Keywords: startproject auth test
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

After installing django and creating a project runing "django-admin.py startproject", if I setup a sqlite3 database and try to run the tests (python manage.py test) it will fail.

Seems that contrib.auth tests are missing 2 template files, making it dependent of contrib.admin templates, however, the admin app isn't installed by default on the generated settings.py.

If I uncomment the contrib.admin line on the generated settings the tests will work properly. It happens on both v1.2.3 and trunk.

It was solved creating the missing template files inside contrib.auth tests. The patch is attached.

Attachments (2)

0001-Added-missing-templates-for-contrib.auth-tests.patch (1.2 KB ) - added by Henrique Bastos 14 years ago.
0001-Added-missing-templates-for-contrib.auth-tests.diff (1.2 KB ) - added by Henrique Bastos 14 years ago.
Just fixing the file extension.

Download all attachments as: .zip

Change History (6)

by Henrique Bastos, 14 years ago

Just fixing the file extension.

comment:1 by Russell Keith-Magee, 14 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Russell Keith-Magee, 14 years ago

milestone: 1.3
Triage Stage: AcceptedReady for checkin

comment:3 by Alex Gaynor, 14 years ago

Resolution: fixed
Status: newclosed

Fixed in [14003].

comment:4 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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