Add tests for Plugwise integration (#36371)

This commit is contained in:
Tom authored and GitHub committed 2020-09-08 08:37:44 +02:00
1 parent 07d5af1969
commit bb9ea7ce6e
36 files changed
+580 -9

No files matched your search

@@ -62,14 +62,14 @@ async def test_form(hass):
{"host": TEST_HOST, "password": TEST_PASSWORD},
)
await hass.async_block_till_done()
assert result2["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result2["data"] == {
"host": TEST_HOST,
"password": TEST_PASSWORD,
}
await hass.async_block_till_done()
assert result["errors"] == {}
assert len(mock_setup.mock_calls) == 1
assert len(mock_setup_entry.mock_calls) == 1
@@ -108,7 +108,6 @@ async def test_zeroconf_form(hass):
"password": TEST_PASSWORD,
}
assert result["errors"] == {}
assert len(mock_setup.mock_calls) == 1
assert len(mock_setup_entry.mock_calls) == 1