mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
Fix flapping buienradar tests (#36394)
This commit is contained in:
@@ -56,6 +56,7 @@ async def test_expire_delta(aioclient_mock, hass, hass_client):
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
client = await hass_client()
|
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(
|
await async_setup_component(
|
||||||
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
||||||
)
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
client = await hass_client()
|
client = await hass_client()
|
||||||
|
|
||||||
@@ -102,6 +104,7 @@ async def test_dimension(aioclient_mock, hass, hass_client):
|
|||||||
"camera",
|
"camera",
|
||||||
{"camera": {"name": "config_test", "platform": "buienradar", "dimension": 700}},
|
{"camera": {"name": "config_test", "platform": "buienradar", "dimension": 700}},
|
||||||
)
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
client = await hass_client()
|
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()
|
client = await hass_client()
|
||||||
|
|
||||||
@@ -140,6 +144,7 @@ async def test_failure_response_not_cached(aioclient_mock, hass, hass_client):
|
|||||||
await async_setup_component(
|
await async_setup_component(
|
||||||
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
||||||
)
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
client = await hass_client()
|
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()
|
client = await hass_client()
|
||||||
|
|
||||||
@@ -201,6 +207,7 @@ async def test_retries_after_error(aioclient_mock, hass, hass_client):
|
|||||||
await async_setup_component(
|
await async_setup_component(
|
||||||
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
hass, "camera", {"camera": {"name": "config_test", "platform": "buienradar"}}
|
||||||
)
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
client = await hass_client()
|
client = await hass_client()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user