dcramer/mock-django

Return anonymous user

leebrooks0 opened this issue · 8 comments

Is this line correct:

https://github.com/dcramer/mock-django/blob/master/mock_django/http.py#L62

Should it not be if user is None?

If I don't pass in a user I get None for request.user

Another thing, should this line

https://github.com/dcramer/mock-django/blob/master/mock_django/http.py#L63

not read user = self.user?

Sorry I see it is not a class, what i meant was that

user = AnonymousUser()?

Thanks for the fix, any chance you could push a new version to pypi?

Thanks