1
mirror of https://github.com/home-assistant/core synced 2024-09-09 12:51:22 +02:00
ha-core/tests/__init__.py
2016-02-02 21:33:59 -08:00

12 lines
307 B
Python

import betamax
from homeassistant.util import location
from .common import mock_detect_location_info
with betamax.Betamax.configure() as config:
config.cassette_library_dir = 'tests/cassettes'
# This hits a 3rd party server. Always mock it.
location.detect_location_info = mock_detect_location_info