tests: drf default authentication class

This commit is contained in:
Lauréline Guérin 2022-08-08 09:24:32 +02:00
parent 2cae1d52c5
commit f90bf991a3
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 5 additions and 0 deletions

View File

@ -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',