Skip to content

Commit

Permalink
Address review comment on myuplink tests (home-assistant#132819)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrandb authored Dec 10, 2024
1 parent 71d7e14 commit 46d4081
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/components/myuplink/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 46d4081

Please sign in to comment.