Django Unit Test Failure in auth Package

We’ve been using the django.contrib.auth app to handle all of our user login/logout/registration/etc. needs, and it has worked great for us so far.  However, when we tried to run the unit tests for our project we found 10 or so errors with regards to the auth package itself.

At first, I thought it was because we were missing required templates, so I implemented Change Password… to see if I could make some of the unit tests pass. That didn’t work.

So after a bit more googling, I finally found a bug related to my problem: http://code.djangoproject.com/ticket/7756

It turns out that I was missing a required app in my setup.py‘s INSTALLED_APP variable. Apparently, all you have to do is add django.contrib.admin to INSTALLED_APP make all the unit tests pass.

Sigh, well at least I got a new feature in!

This entry was posted in Django, Tech and tagged , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>