Skip to content

Commit 8db4c24

Browse files
committed
add allauth middleware to test settings
The django-allauth package since 0.56¹ requires setting up its middleware in settings. Note that a PR² for dj-rest-auth is open to solve the situation there as well. [1] https://github.com/pennersr/django-allauth/blob/main/ChangeLog.rst#backwards-incompatible-changes-1 [2] iMerica/dj-rest-auth#561
1 parent 6e48a70 commit 8db4c24

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

requirements/optionals.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
django-allauth<0.55.0 # breaking change breaking dj-rest-auth
1+
django-allauth>=0.56.0
22
drf-jwt>=0.13.0
33
dj-rest-auth>=1.0.0
44
djangorestframework-simplejwt>=4.4.0

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def pytest_configure(config):
7070
'django.middleware.common.CommonMiddleware',
7171
'django.contrib.auth.middleware.AuthenticationMiddleware',
7272
'django.middleware.locale.LocaleMiddleware',
73+
'allauth.account.middleware.AccountMiddleware',
7374
),
7475
INSTALLED_APPS=(
7576
'django.contrib.auth',

0 commit comments

Comments
 (0)