1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

Tests: Mock get_local_ip by default too

This commit is contained in:
Paulus Schoutsen
2016-02-14 22:01:30 -08:00
parent 09ab3e95c0
commit 8d366a7367
6 changed files with 9 additions and 22 deletions

View File

@@ -32,9 +32,7 @@ def _url(path=""):
return HTTP_BASE_URL + path
@patch('homeassistant.components.http.util.get_local_ip',
return_value='127.0.0.1')
def setUpModule(mock_get_local_ip): # pylint: disable=invalid-name
def setUpModule(): # pylint: disable=invalid-name
""" Initializes a Home Assistant server. """
global hass