Skip to content

Commit c9d2f89

Browse files
committed
add allauth middleware to test settings
The django-allauth package since 0.56¹ requires setting up its middleware in settings. The same issue² was fixed in dj-rest-auth 5.0.2. [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 c9d2f89

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

requirements/optionals.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
django-allauth<0.55.0 # breaking change breaking dj-rest-auth
1+
django-allauth>=0.56.0
22
drf-jwt>=0.13.0
3-
dj-rest-auth>=1.0.0
3+
dj-rest-auth>=5.0.2
44
djangorestframework-simplejwt>=4.4.0
55
django-polymorphic>=2.1
66
django-rest-polymorphic>=0.1.8

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)