Changed concatenation of strings to f-strings

This commit is contained in:
eukub 2023-11-15 20:49:08 +03:00
parent 9a12f34bbe
commit d8b82c0268
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

@ -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