-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flask 3.1 fixed pallets/flask#5553 which had the side-effect of enforcing that subdomain_matching=True must be set. This is a test case change only.
- Loading branch information
Showing
2 changed files
with
4 additions
and
2 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 |
---|---|---|
|
@@ -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") | ||
|