#17966: Tests fail with trivial usage of AUTH_PROFILE_MODULE -------------------------------+---------------------- Reporter: slacy | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 1.4-rc-2 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+---------------------- I started a totally blank project using 1.4 release (Version in Ticket in 1.4-rc2 because there's no 1.4 release in the ticket system yet).
I added a new app called "account" with a models.py that looks like this: {{{ from django.db import models from django.contrib.auth.models import User class Account(models.Model): user = models.ForeignKey(User) }}} I put "account" in INSTALLED_APPS I put "AUTH_PROFILE_MODULE = 'account.Account'" in settings.py I ran python ./manage.py test and got: {{{ ERROR: test_site_profile_not_available (django.contrib.auth.tests.models.ProfileTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/slacy/src/tmp/env/local/lib/python2.7/site- packages/django/contrib/auth/tests/models.py", line 29, in test_site_profile_not_available del settings.AUTH_PROFILE_MODULE File "/home/slacy/src/tmp/env/local/lib/python2.7/site- packages/django/utils/functional.py", line 215, in __delattr__ delattr(self._wrapped, name) AttributeError: AUTH_PROFILE_MODULE ---------------------------------------------------------------------- Ran 417 tests in 10.302s FAILED (errors=1, skipped=1) Destroying test database for alias 'default'... }}} -- Ticket URL: <https://code.djangoproject.com/ticket/17966> Django <https://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 django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.