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.

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
  • Loading branch information
mweinelt committed Oct 23, 2023
1 parent 6e48a70 commit 8db4c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/optionals.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
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
djangorestframework-simplejwt>=4.4.0
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 8db4c24

Please sign in to comment.