Test fixes (#22911)

* Fix light tests [skip ci]

* Fix tests/common

* Fix some mqtt tests [skip ci]

* Fix tests and component manifests which have only one platform

* Fix more tests and manifests

* Fix demo/notify tests

* Rollback test for demo.geo_location
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2019-04-08 23:16:55 -07:00
1 parent 1a05f7b04d
commit 590eead128
20 files changed
+68 -48

No files matched your search

+4
View File
@@ -21,6 +21,7 @@ async def test_config_yaml_host_not_imported(hass):
'host': 'mock-host'
}
})
await hass.async_block_till_done()
assert len(mock_init.mock_calls) == 0
@@ -34,6 +35,7 @@ async def test_config_yaml_host_imported(hass):
'host': 'mock-host'
}
})
await hass.async_block_till_done()
progress = hass.config_entries.flow.async_progress()
assert len(progress) == 1
@@ -54,6 +56,7 @@ async def test_config_json_host_not_imported(hass):
assert await async_setup_component(hass, 'tradfri', {
'tradfri': {}
})
await hass.async_block_till_done()
assert len(mock_init.mock_calls) == 0
@@ -65,6 +68,7 @@ async def test_config_json_host_imported(hass, mock_gateway_info):
assert await async_setup_component(hass, 'tradfri', {
'tradfri': {}
})
await hass.async_block_till_done()
progress = hass.config_entries.flow.async_progress()
assert len(progress) == 1