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:
1 parent
1a05f7b04d
commit
590eead128
20 files changed
+68
-48
No files matched your search
@@ -38,10 +38,12 @@ class TestDemoPlatform(unittest.TestCase):
|
||||
with patch('homeassistant.util.dt.utcnow', return_value=utcnow):
|
||||
with assert_setup_component(1, geo_location.DOMAIN):
|
||||
assert setup_component(self.hass, geo_location.DOMAIN, CONFIG)
|
||||
self.hass.block_till_done()
|
||||
|
||||
# In this test, only entities of the geolocation domain have been
|
||||
# In this test, five geolocation entities have been
|
||||
# generated.
|
||||
all_states = self.hass.states.all()
|
||||
print(all_states)
|
||||
assert len(all_states) == NUMBER_OF_DEMO_DEVICES
|
||||
|
||||
# Check a single device's attributes.
|
||||
|
||||
@@ -45,6 +45,7 @@ class TestNotifyDemo(unittest.TestCase):
|
||||
with assert_setup_component(1) as config:
|
||||
assert setup_component(self.hass, notify.DOMAIN, CONFIG)
|
||||
assert config[notify.DOMAIN]
|
||||
self.hass.block_till_done()
|
||||
|
||||
def test_setup(self):
|
||||
"""Test setup."""
|
||||
|
||||
Reference in new issue
Block a user