mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Enable Ruff SIM117 (#86783)
This commit is contained in:
@@ -192,11 +192,10 @@ async def test_reauthentication(
|
||||
},
|
||||
)
|
||||
|
||||
with patch("homeassistant.components.yolink.api.ConfigEntryAuth"):
|
||||
with patch(
|
||||
"homeassistant.components.yolink.async_setup_entry", return_value=True
|
||||
) as mock_setup:
|
||||
result = await hass.config_entries.flow.async_configure(result["flow_id"])
|
||||
with patch("homeassistant.components.yolink.api.ConfigEntryAuth"), patch(
|
||||
"homeassistant.components.yolink.async_setup_entry", return_value=True
|
||||
) as mock_setup:
|
||||
result = await hass.config_entries.flow.async_configure(result["flow_id"])
|
||||
token_data = old_entry.data["token"]
|
||||
assert token_data["access_token"] == "mock-access-token"
|
||||
assert token_data["refresh_token"] == "mock-refresh-token"
|
||||
|
||||
Reference in New Issue
Block a user