Opened 6 years ago

Closed 6 years ago

Last modified 5 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: UI/UX:

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 6 years ago.
0001-Added-missing-templates-for-contrib.auth-tests.diff (1.2 KB) - added by Henrique Bastos 6 years ago.
Just fixing the file extension.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by Henrique Bastos

Changed 6 years ago by Henrique Bastos

Just fixing the file extension.

comment:1 Changed 6 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by Russell Keith-Magee

milestone: 1.3
Triage Stage: AcceptedReady for checkin

comment:3 Changed 6 years ago by Alex Gaynor

Resolution: fixed
Status: newclosed

Fixed in [14003].

comment:4 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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