mirror of
https://github.com/home-assistant/core
synced 2024-09-09 12:51:22 +02:00
12 lines
307 B
Python
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
|