Speed up tests

This commit is contained in:
Paulus Schoutsen committed 2015-09-01 00:18:26 -07:00
1 parent a34b00bc9c
commit 58afbecd05
21 files changed
+98 -82

No files matched your search

+1 -1
View File
@@ -77,7 +77,7 @@ class TestSun(unittest.TestCase):
""" Test if the state changes at next setting/rising. """
self.hass.config.latitude = '32.87336'
self.hass.config.longitude = '117.22743'
sun.setup(self.hass, {})
sun.setup(self.hass, {sun.DOMAIN: {sun.CONF_ELEVATION: 0}})
if sun.is_on(self.hass):
test_state = sun.STATE_BELOW_HORIZON