From 8aa8b9af7fe0dd2e62c0961b64efd31bc1ae9a1a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 27 Oct 2023 19:36:24 +0200 Subject: [PATCH] Install allacccount middleware in test settings (#561) and upgrade django-allauth past 0.56.0. Closes: #555 --- dj_rest_auth/tests/requirements.pip | 2 +- dj_rest_auth/tests/settings.py | 1 + setup.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dj_rest_auth/tests/requirements.pip b/dj_rest_auth/tests/requirements.pip index 7fb02c76..2df86c29 100644 --- a/dj_rest_auth/tests/requirements.pip +++ b/dj_rest_auth/tests/requirements.pip @@ -1,5 +1,5 @@ coveralls==1.11.1 -django-allauth==0.55.2 +django-allauth==0.57.0 djangorestframework-simplejwt==4.6.0 flake8==3.8.4 responses==0.12.1 diff --git a/dj_rest_auth/tests/settings.py b/dj_rest_auth/tests/settings.py index 12f78ed4..be3e9a06 100644 --- a/dj_rest_auth/tests/settings.py +++ b/dj_rest_auth/tests/settings.py @@ -35,6 +35,7 @@ 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'allauth.account.middleware.AccountMiddleware', ] # Adding for backwards compatibility for Django 1.8 tests diff --git a/setup.py b/setup.py index d190e9af..bba69a64 100644 --- a/setup.py +++ b/setup.py @@ -32,11 +32,11 @@ 'djangorestframework>=3.13.0', ], extras_require={ - 'with_social': ['django-allauth>=0.55.0,<0.56.0'], + 'with_social': ['django-allauth>=0.56.0,<0.58.0'], }, tests_require=[ 'coveralls>=1.11.1', - 'django-allauth==0.55.2', + 'django-allauth>=0.57.0', 'djangorestframework-simplejwt==4.6.0', 'responses==0.12.1', 'unittest-xml-reporting==3.0.4',