Tons of fixes - WIP

This commit is contained in:
Paulus Schoutsen 2016-05-14 00:58:36 -07:00
parent 768c98d359
commit 15e329a588
22 changed files with 938 additions and 1604 deletions

View file

@ -120,7 +120,7 @@ def mock_state_change_event(hass, new_state, old_state=None):
def mock_http_component(hass):
"""Mock the HTTP component."""
hass.http = MockHTTP()
hass.wsgi = mock.MagicMock()
hass.config.components.append('http')
@ -135,14 +135,6 @@ def mock_mqtt_component(hass, mock_mqtt):
return mock_mqtt
class MockHTTP(object):
"""Mock the HTTP module."""
def register_path(self, method, url, callback, require_auth=True):
"""Register a path."""
pass
class MockModule(object):
"""Representation of a fake module."""