Skip to content

Commit

Permalink
v9.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Vedrilla committed Oct 27, 2023
1 parent 6f36e76 commit 5bf2b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ambient_toolbox/tests/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_request(
request = factory.get(url)

# Set user object if it is of a valid type
if isinstance(user, AbstractBaseUser | AnonymousUser):
if isinstance(user, AbstractBaseUser | AnonymousUser) or user is None:
request.user = user
else:
raise ValueError(_('Please pass a user object to RequestProviderMixin.'))
Expand Down

0 comments on commit 5bf2b53

Please sign in to comment.