diff --git a/tests/openwisp2/settings.py b/tests/openwisp2/settings.py index 75d12521..3788975d 100644 --- a/tests/openwisp2/settings.py +++ b/tests/openwisp2/settings.py @@ -80,6 +80,7 @@ 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'allauth.account.middleware.AccountMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', # 'debug_toolbar.middleware.DebugToolbarMiddleware',