mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Fix metoffice test_forecast_subscription raises key error (#103598)
Allow test time change to be processed
This commit is contained in:
parent
0d67557106
commit
624837912c
@ -559,6 +559,7 @@ async def test_forecast_subscription(
|
||||
assert forecast1 == snapshot
|
||||
|
||||
freezer.tick(DEFAULT_SCAN_INTERVAL + timedelta(seconds=1))
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
msg = await client.receive_json()
|
||||
|
||||
@ -575,5 +576,8 @@ async def test_forecast_subscription(
|
||||
"subscription": subscription_id,
|
||||
}
|
||||
)
|
||||
freezer.tick(timedelta(seconds=1))
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
msg = await client.receive_json()
|
||||
assert msg["success"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user