Fix to make tests work on Travis CI
This commit is contained in:
1 parent
5cbe7bf1b8
commit
100948eb38
3 files changed
+10
-9
No files matched your search
+3
-3
@@ -11,7 +11,7 @@ import homeassistant as ha
|
||||
import homeassistant.loader as loader
|
||||
import homeassistant.components.http as http
|
||||
|
||||
from mock import switch_platform
|
||||
import mock_switch_platform
|
||||
|
||||
|
||||
class TestLoader(unittest.TestCase):
|
||||
@@ -26,10 +26,10 @@ class TestLoader(unittest.TestCase):
|
||||
|
||||
def test_set_component(self):
|
||||
""" Test if set_component works. """
|
||||
loader.set_component('switch.test', switch_platform)
|
||||
loader.set_component('switch.test', mock_switch_platform)
|
||||
|
||||
self.assertEqual(
|
||||
switch_platform, loader.get_component('switch.test'))
|
||||
mock_switch_platform, loader.get_component('switch.test'))
|
||||
|
||||
def test_get_component(self):
|
||||
""" Test if get_component works. """
|
||||
|
||||
Reference in new issue
Block a user