#9095: Auth has errors in unit tests when Admin isn't in INSTALLED_APPS
-------------------------------------+--------------------------------------
 Reporter:  SamBull                  |       Owner:  nobody    
   Status:  new                      |   Milestone:            
Component:  Authentication           |     Version:  1.0       
 Keywords:  unittest test templates  |       Stage:  Unreviewed
Has_patch:  0                        |  
-------------------------------------+--------------------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9095>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to