Skip to content

Commit

Permalink
add allauth middleware to test settings
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mweinelt committed Nov 19, 2023
1 parent 6e48a70 commit c9d2f89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions requirements/optionals.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
django-allauth<0.55.0 # breaking change breaking dj-rest-auth
django-allauth>=0.56.0
drf-jwt>=0.13.0
dj-rest-auth>=1.0.0
dj-rest-auth>=5.0.2
djangorestframework-simplejwt>=4.4.0
django-polymorphic>=2.1
django-rest-polymorphic>=0.1.8
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def pytest_configure(config):
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'allauth.account.middleware.AccountMiddleware',
),
INSTALLED_APPS=(
'django.contrib.auth',
Expand Down

0 comments on commit c9d2f89

Please sign in to comment.