From f90bf991a356d03bacff9a0bd883b400789c0578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laur=C3=A9line=20Gu=C3=A9rin?= Date: Mon, 8 Aug 2022 09:24:32 +0200 Subject: [PATCH] tests: drf default authentication class --- tests/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/settings.py b/tests/settings.py index ea1cce9..1c45c63 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -3,6 +3,11 @@ import os TIME_ZONE = 'Europe/Paris' LANGUAGE_CODE = 'en-us' +REST_FRAMEWORK = { + 'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.BasicAuthentication'], + 'EXCEPTION_HANDLER': 'lingo.api.utils.exception_handler', +} + CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',