Fix block till done in create entry config flow tests (#42290)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-10-24 16:20:56 +02:00
1 parent bfb603fe78
commit 1c36bf5e19
57 files changed
+105 -108

No files matched your search

+1 -1
View File
@@ -32,11 +32,11 @@ async def test_form(hass):
result["flow_id"],
CONFIG,
)
await hass.async_block_till_done()
assert result2["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result2["title"] == CONFIG[CONF_USERNAME]
assert result2["data"] == CONFIG
await hass.async_block_till_done()
assert len(mock_setup.mock_calls) == 1
assert len(mock_setup_entry.mock_calls) == 1