mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix flapping buienradar tests (#36394)
This commit is contained in:
parent
5ba610859d
commit
eedbb86b67
@ -56,6 +56,7 @@ async def test_expire_delta(aioclient_mock, hass, hass_client):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
@ -79,6 +80,7 @@ async def test_only_one_fetch_at_a_time(aioclient_mock, hass, hass_client):
|
||||
await async_setup_component(
|
||||
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
@ -102,6 +104,7 @@ async def test_dimension(aioclient_mock, hass, hass_client):
|
||||
"camera",
|
||||
{"camera": {"name": "config_test", "platform": "buienradar", "dimension": 700}},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
@ -125,6 +128,7 @@ async def test_belgium_country(aioclient_mock, hass, hass_client):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
@ -140,6 +144,7 @@ async def test_failure_response_not_cached(aioclient_mock, hass, hass_client):
|
||||
await async_setup_component(
|
||||
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
@ -173,6 +178,7 @@ async def test_last_modified_updates(aioclient_mock, hass, hass_client):
|
||||
}
|
||||
},
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
@ -201,6 +207,7 @@ async def test_retries_after_error(aioclient_mock, hass, hass_client):
|
||||
await async_setup_component(
|
||||
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
||||
)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user