-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/update-cs-locale
- Loading branch information
Showing
70 changed files
with
2,042 additions
and
2,117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ Guoyu Hao | |
Haesung Park | ||
Hatem Nassrat | ||
Hyunwoo Shim | ||
Ian R-P | ||
Ignacio Ocampo | ||
Illia Volochii | ||
J. Erm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from django.http import HttpResponseRedirect | ||
from django.urls import reverse | ||
|
||
from allauth.account.adapter import DefaultAccountAdapter | ||
from allauth.core.exceptions import ImmediateHttpResponse | ||
|
||
|
||
class TestAccountAdapter(DefaultAccountAdapter): | ||
def pre_login(self, *args, **kwargs): | ||
raise ImmediateHttpResponse(HttpResponseRedirect("/foo")) | ||
|
||
|
||
def test_adapter_pre_login(settings, user, user_password, client): | ||
settings.ACCOUNT_ADAPTER = "allauth.account.tests.test_adapter.TestAccountAdapter" | ||
resp = client.post( | ||
reverse("account_login"), | ||
{"login": user.username, "password": user_password}, | ||
) | ||
assert resp.status_code == 302 | ||
assert resp["location"] == "/foo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.