-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.flask-security: fix test (#367863)
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 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
13 changes: 13 additions & 0 deletions
13
pkgs/development/python-modules/flask-security/fix_test_basic.patch
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,13 @@ | ||
diff --git a/tests/test_basic.py b/tests/test_basic.py | ||
index d52be429..09dfa8e4 100644 | ||
--- a/tests/test_basic.py | ||
+++ b/tests/test_basic.py | ||
@@ -157,6 +157,8 @@ def test_authenticate_with_subdomain_next(app, client, get_message): | ||
|
||
@pytest.mark.settings(subdomain="auth") | ||
def test_authenticate_with_root_domain_next(app, client, get_message): | ||
+ # As of Flask 3.1 this must be explicitly set. | ||
+ app.subdomain_matching = True | ||
app.config["SERVER_NAME"] = "lp.com" | ||
app.config["SECURITY_REDIRECT_ALLOW_SUBDOMAINS"] = True | ||
data = dict(email="[email protected]", password="password") |