Changed concatenation of strings to f-strings
This commit is contained in:
parent
9a12f34bbe
commit
d8b82c0268
2 changed files with 2 additions and 2 deletions
|
|
@ -355,7 +355,7 @@ class Blueprint(Scaffold):
|
|||
bp_subdomain = blueprint.subdomain
|
||||
|
||||
if state.subdomain is not None and bp_subdomain is not None:
|
||||
bp_options["subdomain"] = bp_subdomain + "." + state.subdomain
|
||||
bp_options["subdomain"] = f"{bp_subdomain}.{state.subdomain}"
|
||||
elif bp_subdomain is not None:
|
||||
bp_options["subdomain"] = bp_subdomain
|
||||
elif state.subdomain is not None:
|
||||
|
|
|
|||
|
|
@ -966,7 +966,7 @@ def test_nesting_subdomains(app, client) -> None:
|
|||
|
||||
domain_name = "domain.tld"
|
||||
app.config["SERVER_NAME"] = domain_name
|
||||
response = client.get("/child/", base_url="http://api." + domain_name)
|
||||
response = client.get("/child/", base_url=f"http://api.{domain_name}")
|
||||
|
||||
assert response.status_code == 200
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue