Ticket #9095: auth_unit_test_errors.txt

File auth_unit_test_errors.txt, 14.4 KB (added by SamBull, 7 years ago)
Line 
1Creating test database...
2Creating table auth_permission
3Creating table auth_group
4Creating table auth_user
5Creating table auth_message
6Creating table django_content_type
7Creating table django_session
8Installing index for auth.Permission model
9Installing index for auth.Message model
10EE.EEEEEEE.....
11======================================================================
12ERROR: test_password_change_fails_with_invalid_old_password (django.contrib.auth.tests.views.ChangePasswordTest)
13----------------------------------------------------------------------
14Traceback (most recent call last):
15  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 135, in test_password_change_fails_with_invalid_old_password
16    'new_password2': 'password1',
17  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
18    return self.request(**r)
19  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
20    response = callback(request, *callback_args, **callback_kwargs)
21  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 67, in __call__
22    return self.view_func(request, *args, **kwargs)
23  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 153, in password_change
24    }, context_instance=RequestContext(request))
25  File "/usr/local/lib/python2.5/site-packages/django/shortcuts/__init__.py", line 18, in render_to_response
26    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
27  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 102, in render_to_string
28    t = get_template(template_name)
29  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
30    source, origin = find_template_source(template_name)
31  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
32    raise TemplateDoesNotExist, name
33TemplateDoesNotExist: registration/password_change_form.html
34
35======================================================================
36ERROR: test_password_change_fails_with_mismatched_passwords (django.contrib.auth.tests.views.ChangePasswordTest)
37----------------------------------------------------------------------
38Traceback (most recent call last):
39  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 146, in test_password_change_fails_with_mismatched_passwords
40    'new_password2': 'donuts',
41  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
42    return self.request(**r)
43  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
44    response = callback(request, *callback_args, **callback_kwargs)
45  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/decorators.py", line 67, in __call__
46    return self.view_func(request, *args, **kwargs)
47  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 153, in password_change
48    }, context_instance=RequestContext(request))
49  File "/usr/local/lib/python2.5/site-packages/django/shortcuts/__init__.py", line 18, in render_to_response
50    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
51  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 102, in render_to_string
52    t = get_template(template_name)
53  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
54    source, origin = find_template_source(template_name)
55  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
56    raise TemplateDoesNotExist, name
57TemplateDoesNotExist: registration/password_change_form.html
58
59======================================================================
60ERROR: test_confirm_complete (django.contrib.auth.tests.views.PasswordResetTest)
61----------------------------------------------------------------------
62Traceback (most recent call last):
63  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 71, in test_confirm_complete
64    url, path = self._test_confirm_start()
65  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 31, in _test_confirm_start
66    response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
67  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
68    return self.request(**r)
69  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
70    response = callback(request, *callback_args, **callback_kwargs)
71  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 92, in password_reset
72    form.save(**opts)
73  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py", line 124, in save
74    t = loader.get_template(email_template_name)
75  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
76    source, origin = find_template_source(template_name)
77  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
78    raise TemplateDoesNotExist, name
79TemplateDoesNotExist: registration/password_reset_email.html
80
81======================================================================
82ERROR: test_confirm_different_passwords (django.contrib.auth.tests.views.PasswordResetTest)
83----------------------------------------------------------------------
84Traceback (most recent call last):
85  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 86, in test_confirm_different_passwords
86    url, path = self._test_confirm_start()
87  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 31, in _test_confirm_start
88    response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
89  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
90    return self.request(**r)
91  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
92    response = callback(request, *callback_args, **callback_kwargs)
93  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 92, in password_reset
94    form.save(**opts)
95  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py", line 124, in save
96    t = loader.get_template(email_template_name)
97  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
98    source, origin = find_template_source(template_name)
99  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
100    raise TemplateDoesNotExist, name
101TemplateDoesNotExist: registration/password_reset_email.html
102
103======================================================================
104ERROR: test_confirm_invalid (django.contrib.auth.tests.views.PasswordResetTest)
105----------------------------------------------------------------------
106Traceback (most recent call last):
107  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 49, in test_confirm_invalid
108    url, path = self._test_confirm_start()
109  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 31, in _test_confirm_start
110    response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
111  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
112    return self.request(**r)
113  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
114    response = callback(request, *callback_args, **callback_kwargs)
115  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 92, in password_reset
116    form.save(**opts)
117  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py", line 124, in save
118    t = loader.get_template(email_template_name)
119  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
120    source, origin = find_template_source(template_name)
121  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
122    raise TemplateDoesNotExist, name
123TemplateDoesNotExist: registration/password_reset_email.html
124
125======================================================================
126ERROR: test_confirm_invalid_post (django.contrib.auth.tests.views.PasswordResetTest)
127----------------------------------------------------------------------
128Traceback (most recent call last):
129  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 61, in test_confirm_invalid_post
130    url, path = self._test_confirm_start()
131  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 31, in _test_confirm_start
132    response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
133  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
134    return self.request(**r)
135  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
136    response = callback(request, *callback_args, **callback_kwargs)
137  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 92, in password_reset
138    form.save(**opts)
139  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py", line 124, in save
140    t = loader.get_template(email_template_name)
141  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
142    source, origin = find_template_source(template_name)
143  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
144    raise TemplateDoesNotExist, name
145TemplateDoesNotExist: registration/password_reset_email.html
146
147======================================================================
148ERROR: test_confirm_valid (django.contrib.auth.tests.views.PasswordResetTest)
149----------------------------------------------------------------------
150Traceback (most recent call last):
151  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 42, in test_confirm_valid
152    url, path = self._test_confirm_start()
153  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 31, in _test_confirm_start
154    response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
155  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
156    return self.request(**r)
157  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
158    response = callback(request, *callback_args, **callback_kwargs)
159  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 92, in password_reset
160    form.save(**opts)
161  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py", line 124, in save
162    t = loader.get_template(email_template_name)
163  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
164    source, origin = find_template_source(template_name)
165  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
166    raise TemplateDoesNotExist, name
167TemplateDoesNotExist: registration/password_reset_email.html
168
169======================================================================
170ERROR: Email is sent if a valid email address is provided for password reset
171----------------------------------------------------------------------
172Traceback (most recent call last):
173  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 24, in test_email_found
174    response = self.client.post('/password_reset/', {'email': 'staffmember@example.com'})
175  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 285, in post
176    return self.request(**r)
177  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
178    response = callback(request, *callback_args, **callback_kwargs)
179  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 92, in password_reset
180    form.save(**opts)
181  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py", line 124, in save
182    t = loader.get_template(email_template_name)
183  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
184    source, origin = find_template_source(template_name)
185  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
186    raise TemplateDoesNotExist, name
187TemplateDoesNotExist: registration/password_reset_email.html
188
189======================================================================
190ERROR: Error is raised if the provided email address isn't currently registered
191----------------------------------------------------------------------
192Traceback (most recent call last):
193  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/tests/views.py", line 16, in test_email_not_found
194    response = self.client.get('/password_reset/')
195  File "/usr/local/lib/python2.5/site-packages/django/test/client.py", line 265, in get
196    return self.request(**r)
197  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 86, in get_response
198    response = callback(request, *callback_args, **callback_kwargs)
199  File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py", line 98, in password_reset
200    }, context_instance=RequestContext(request))
201  File "/usr/local/lib/python2.5/site-packages/django/shortcuts/__init__.py", line 18, in render_to_response
202    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
203  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 102, in render_to_string
204    t = get_template(template_name)
205  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 80, in get_template
206    source, origin = find_template_source(template_name)
207  File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source
208    raise TemplateDoesNotExist, name
209TemplateDoesNotExist: registration/password_reset_form.html
210
211----------------------------------------------------------------------
212Ran 15 tests in 1.053s
213
214FAILED (errors=9)
215Destroying test database...
Back to Top