diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f3e67c8f..0fcd1245 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: check-merge-conflict - id: fix-byte-order-marker - repo: https://github.com/asottile/pyupgrade - rev: v3.18.0 + rev: v3.19.0 hooks: - id: pyupgrade args: [--py39-plus] @@ -31,7 +31,7 @@ repos: - flake8-bugbear - flake8-implicit-str-concat - repo: https://github.com/Riverside-Healthcare/djLint - rev: v1.35.2 + rev: v1.36.1 hooks: - id: djlint-jinja files: "\\.html" 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="matt@lp.com", password="password")