Auth has errors in unit tests when Admin isn't in INSTALLED_APPS
|Reported by:||SamBull||Owned by:||nobody|
|Severity:||Keywords:||unittest test templates|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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:
These templates are in contrib/admin/templates/.
These are the tests that are failing:
- In ChangePasswordTest:
- In PasswordResetTest
- "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.