2010/5/19 Filip Gruszczyński <grusz...@gmail.com>

> I have just installed Django 1.2 hoping, that my test suites will
> finally work flawlessly and I won't have to watch tests from
> django.contrib.auth fail. But, here they are again. Does anyone have
> any idea, how I can get rid of those? I would really like to see no
> errors, because this way we could easily automate testing and detect
> any true errors.
>
> ======================================================================
> ERROR: test_known_user
> (django.contrib.auth.tests.remote_user.RemoteUserCustomTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File
> "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/remote_user.py",
> line 160, in test_known_user
>    super(RemoteUserCustomTest, self).test_known_user()
>  File
> "/usr/local/lib/python2.6/dist-packages/django/contrib/auth/tests/remote_user.py",
> line 67, in test_known_user
>    self.assertEqual(response.context['user'].username, 'knownuser')
> TypeError: 'NoneType' object is unsubscriptable
>


If you create a new Django project & app, include admin and auth in
INSTALLED_APPS, and run the tests, they pass. I'm aware of some issues with
built-in auth and/or admin tests failing depending on specific project
settings, see for example: http://code.djangoproject.com/ticket/11077. That
ticket references discussions on django-dev covering the broader (still
open) issue of integration testing versus application testing. It's possible
that broader issue is what you are running into here.

However, so far as I can tell I have never seen a report of these auth
remote_user tests failing before. I can find no mention of such failures in
trac nor in my mail archive of django-users. So I have no idea if this is an
integration/application test issue or something else. The first things to
figure out would be what's different about your project compared to a
newly-created one that is leading to these tests failing. You have not given
any specifics about your project so I'm not really sure what might be
causing these failures.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to