Skip to content
Snippets Groups Projects
Verified Commit 2d4003c8 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

anonymoususer test fixture

parent fce5ee0e
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import tempfile
import shutil
import pytest
from django.contrib.auth.models import AnonymousUser
from django.core.cache import cache as django_cache
from dynamic_preferences.registries import global_preferences_registry
......@@ -66,6 +67,11 @@ def logged_in_client(db, factories, client):
delattr(client, 'user')
@pytest.fixture
def anonymous_user():
return AnonymousUser()
@pytest.fixture
def api_client(client):
return APIClient()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment