Tests: Mock get_local_ip by default too

This commit is contained in:
Paulus Schoutsen committed 2016-02-14 22:01:30 -08:00
1 parent 09ab3e95c0
commit 8d366a7367
6 files changed
+9 -22

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ Tests initialization.
"""
import betamax
from homeassistant import util
from homeassistant.util import location
with betamax.Betamax.configure() as config:
@@ -28,3 +29,4 @@ location.detect_location_info = lambda: location.LocationInfo(
)
location.elevation = lambda latitude, longitude: 0
util.get_local_ip = lambda: '127.0.0.1'