Use freezer.tick in devolo_home_network image tests (#101208)
Use freezer.tick
This commit is contained in:
parent
2d58ab0e1c
commit
598a8890e9
1 changed files with 4 additions and 4 deletions
|
@ -68,8 +68,8 @@ async def test_guest_wifi_qr(
|
|||
|
||||
# Emulate device failure
|
||||
mock_device.device.async_get_wifi_guest_access.side_effect = DeviceUnavailable()
|
||||
freezer.move_to(dt_util.utcnow() + SHORT_UPDATE_INTERVAL)
|
||||
async_fire_time_changed(hass, dt_util.utcnow() + SHORT_UPDATE_INTERVAL)
|
||||
freezer.tick(SHORT_UPDATE_INTERVAL)
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get(state_key)
|
||||
|
@ -80,8 +80,8 @@ async def test_guest_wifi_qr(
|
|||
mock_device.device.async_get_wifi_guest_access = AsyncMock(
|
||||
return_value=GUEST_WIFI_CHANGED
|
||||
)
|
||||
freezer.move_to(dt_util.utcnow() + SHORT_UPDATE_INTERVAL)
|
||||
async_fire_time_changed(hass, dt_util.utcnow() + SHORT_UPDATE_INTERVAL)
|
||||
freezer.tick(SHORT_UPDATE_INTERVAL)
|
||||
async_fire_time_changed(hass)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
state = hass.states.get(state_key)
|
||||
|
|
Loading…
Add table
Reference in a new issue