mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use f-strings in integrations starting with "A" (#32110)
* Use f-strings in integrations starting with A * Use f-strings in tests for integrations starting with A * Fix pylint by renaming variable * Fix nested for loop in f-string for aprs device_tracker * Break long lines into multiple short lines * Break long lines into multiple short lines v2
This commit is contained in:
@@ -28,7 +28,7 @@ async def test_login_new_user_and_trying_refresh_token(hass, aiohttp_client):
|
||||
step = await resp.json()
|
||||
|
||||
resp = await client.post(
|
||||
"/auth/login_flow/{}".format(step["flow_id"]),
|
||||
f"/auth/login_flow/{step['flow_id']}",
|
||||
json={"client_id": CLIENT_ID, "username": "test-user", "password": "test-pass"},
|
||||
)
|
||||
|
||||
@@ -71,7 +71,7 @@ async def test_login_new_user_and_trying_refresh_token(hass, aiohttp_client):
|
||||
assert resp.status == 401
|
||||
|
||||
resp = await client.get(
|
||||
"/api/", headers={"authorization": "Bearer {}".format(tokens["access_token"])}
|
||||
"/api/", headers={"authorization": f"Bearer {tokens['access_token']}"}
|
||||
)
|
||||
assert resp.status == 200
|
||||
|
||||
|
||||
Reference in New Issue
Block a user