﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
9095	Auth has errors in unit tests when Admin isn't in INSTALLED_APPS	Sam Bull	nobody	"The contrib.auth module fails some of its unit tests with errors if contrib.admin isn't listed in INSTALLED_APPS.

This seems to be because contrib.auth is dependent on these templates:
 * registration/password_change_form.html
 * registration/password_reset_email.html
 * registration/password_reset_form.html

These templates are in contrib/admin/templates/.

These are the tests that are failing:
 * In ChangePasswordTest:
   * test_password_change_fails_with_invalid_old_password
   * test_password_change_fails_with_mismatched_passwords
 * In PasswordResetTest
   * test_confirm_complete
   * test_confirm_different_passwords
   * test_confirm_invalid
   * test_confirm_invalid_post
   * test_confirm_valid
   * ""Email is sent if a valid email address is provided for password reset"" (test_email_found)

I'm attaching the output from when I run the tests.

PS- There are also errors in the tests if the content type or session applications are missing. This doesn't seem like as much of a problem since those apps are more integral to how auth works. They're also both part of the INSALLED_APPS list by default, unlike the admin app.
"		closed	contrib.auth	1.0		duplicate	unittest test templates		Unreviewed	0	0	0	0	0	0
