Speed up tests
This commit is contained in:
parent
a34b00bc9c
commit
58afbecd05
21 changed files with 98 additions and 82 deletions
|
@ -8,7 +8,7 @@ import os
|
|||
from datetime import timedelta
|
||||
from unittest import mock
|
||||
|
||||
import homeassistant.core as ha
|
||||
from homeassistant import core as ha, loader
|
||||
import homeassistant.util.location as location_util
|
||||
import homeassistant.util.dt as dt_util
|
||||
from homeassistant.helpers.entity import ToggleEntity
|
||||
|
@ -38,6 +38,9 @@ def get_test_home_assistant(num_threads=None):
|
|||
hass.config.latitude = 32.87336
|
||||
hass.config.longitude = -117.22743
|
||||
|
||||
# if not loader.PREPARED:
|
||||
loader. prepare(hass)
|
||||
|
||||
return hass
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue