Fixed a test setup and isolation bug that was causing PasswordResetTest to fail when run individually

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2010-11-04 12:31:57 +00:00
parent efc5384a32
commit 7d4a3991f3
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ def remote_user_auth_view(request):
return HttpResponse(t.render(c)) return HttpResponse(t.render(c))
# special urls for auth test cases # special urls for auth test cases
urlpatterns += patterns('', urlpatterns = urlpatterns + patterns('',
(r'^logout/custom_query/$', 'django.contrib.auth.views.logout', dict(redirect_field_name='follow')), (r'^logout/custom_query/$', 'django.contrib.auth.views.logout', dict(redirect_field_name='follow')),
(r'^logout/next_page/$', 'django.contrib.auth.views.logout', dict(next_page='/somewhere/')), (r'^logout/next_page/$', 'django.contrib.auth.views.logout', dict(next_page='/somewhere/')),
(r'^remote_user/$', remote_user_auth_view), (r'^remote_user/$', remote_user_auth_view),

View File

@ -16,7 +16,7 @@ class AuthViewsTestCase(TestCase):
Helper base class for all the follow test cases. Helper base class for all the follow test cases.
""" """
fixtures = ['authtestdata.json'] fixtures = ['authtestdata.json']
urls = 'django.contrib.auth.urls' urls = 'django.contrib.auth.tests.urls'
def setUp(self): def setUp(self):
self.old_LANGUAGES = settings.LANGUAGES self.old_LANGUAGES = settings.LANGUAGES