Skip to content

Commit

Permalink
Correctly set user on MockHttpRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv committed Mar 13, 2015
1 parent f9955b8 commit 9ba5c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock_django/http.py
Expand Up @@ -59,7 +59,7 @@ def MockHttpRequest(path='/', method='GET', GET=None, POST=None, META=None, user
'HTTP_REFERER': '',
'SERVER_NAME': 'testserver',
}
if user is not None:
if user is None:
user = user

request = WsgiHttpRequest()
Expand Down

0 comments on commit 9ba5c85

Please sign in to comment.