ERROR test_users admin tests TestAdmin -------------------- ----------

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
======================================================================
ERROR: test_users (admin.tests.TestAdmin)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sergey/dev/w/rw-letscram/letscram/admin/tests.py", line 120, in test_users
_action(user_key, ban='1')
File "/home/sergey/dev/w/rw-letscram/letscram/admin/tests.py", line 116, in _action
resp = self.client.post('/admin/users/action/', data)
File "/home/sergey/dev/w/rw-letscram/letscram/common/zip-packages/django.zip/django/test/client.py", line 292, in post
return self.request(**r)
File "/home/sergey/dev/w/rw-letscram/letscram/common/zip-packages/django.zip/django/core/handlers/base.py", line 86, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/sergey/dev/w/rw-letscram/letscram/admin/views/users.py", line 54, in do_action
raise Exception('User action not supported (%s)' % request.POST)
Exception: User action not supported (<QueryDict: {u'ban': [u'1'], u'key': [u'agRjcmFtcgoLEgRVc2VyGAEM']}>)
======================================================================
ERROR: test_middleware (facebook.tests.TestFacebookViews)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sergey/dev/w/rw-letscram/letscram/facebook/tests.py", line 256, in test_middleware
mware.process_request(request)
File "/home/sergey/dev/w/rw-letscram/letscram/facebook/middleware.py", line 13, in process_request
logging.info('User: %s' % request.user)
AttributeError: 'Request' object has no attribute 'user'
----------------------------------------------------------------------