mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Patch out Met in onboarding tests (#68732)
This commit is contained in:
parent
0899b67578
commit
9e6bebd27b
@ -372,13 +372,16 @@ async def test_onboarding_core_sets_up_met(hass, hass_storage, hass_client):
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
client = await hass_client()
|
client = await hass_client()
|
||||||
|
with patch(
|
||||||
|
"homeassistant.components.met.async_setup_entry", return_value=True
|
||||||
|
) as mock_setup:
|
||||||
resp = await client.post("/api/onboarding/core_config")
|
resp = await client.post("/api/onboarding/core_config")
|
||||||
|
|
||||||
assert resp.status == 200
|
assert resp.status == 200
|
||||||
|
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
assert len(hass.states.async_entity_ids("weather")) == 1
|
assert len(hass.config_entries.async_entries("met")) == 1
|
||||||
|
assert len(mock_setup.mock_calls) == 1
|
||||||
|
|
||||||
|
|
||||||
async def test_onboarding_core_sets_up_radio_browser(hass, hass_storage, hass_client):
|
async def test_onboarding_core_sets_up_radio_browser(hass, hass_storage, hass_client):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user