[pre-commit.ci lite] apply automatic fixes

This commit is contained in:
pre-commit-ci-lite[bot] 2025-05-26 09:26:20 +00:00 committed by GitHub
parent 1f027e498d
commit 45a0ff357f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -58,9 +58,9 @@ class EnvironBuilder(werkzeug.test.EnvironBuilder):
) -> None: ) -> None:
assert not (base_url or subdomain or url_scheme) or ( assert not (base_url or subdomain or url_scheme) or (
base_url is not None base_url is not None
) != bool( ) != bool(subdomain or url_scheme), (
subdomain or url_scheme 'Cannot pass "subdomain" or "url_scheme" with "base_url".'
), 'Cannot pass "subdomain" or "url_scheme" with "base_url".' )
if base_url is None: if base_url is None:
http_host = app.config.get("SERVER_NAME") or "localhost" http_host = app.config.get("SERVER_NAME") or "localhost"