#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)
Change History (6)
by , 14 years ago
Attachment: | 0001-Added-missing-templates-for-contrib.auth-tests.patch added |
---|
by , 14 years ago
Attachment: | 0001-Added-missing-templates-for-contrib.auth-tests.diff added |
---|
comment:1 by , 14 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
milestone: | → 1.3 |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Just fixing the file extension.