Fix auth-related errors breaking unit tests.

This commit is contained in:
Chris Church
2015-10-02 16:16:30 -04:00
parent 0c7a4b9f60
commit 84e89ab6f8
3 changed files with 5 additions and 11 deletions

View File

@@ -39,6 +39,7 @@ class TokenAuthentication(authentication.TokenAuthentication):
if token:
token = urllib.unquote(token).strip('"')
return 'token %s' % token
return ''
def authenticate(self, request):
self.request = request