mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Address review comment on myuplink tests (#132819)
This commit is contained in:
parent
71d7e14032
commit
46d4081ec6
@ -69,11 +69,16 @@ async def test_full_flow(
|
||||
with patch(
|
||||
f"homeassistant.components.{DOMAIN}.async_setup_entry", return_value=True
|
||||
) as mock_setup:
|
||||
await hass.config_entries.flow.async_configure(result["flow_id"])
|
||||
result = await hass.config_entries.flow.async_configure(result["flow_id"])
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert len(hass.config_entries.async_entries(DOMAIN)) == 1
|
||||
assert len(mock_setup.mock_calls) == 1
|
||||
|
||||
assert result["data"]["auth_implementation"] == DOMAIN
|
||||
assert result["data"]["token"]["refresh_token"] == "mock-refresh-token"
|
||||
assert result["result"].unique_id == UNIQUE_ID
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("current_request_with_host")
|
||||
@pytest.mark.parametrize(
|
||||
|
Loading…
x
Reference in New Issue
Block a user