mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Mock out device tracker configuration loading funcs in Geofency + OwnTracks (#18968)
* Mock out device tracker configuration loading funcs * Update test_init.py * Update test_init.py
This commit is contained in:
parent
ab7c52a9c4
commit
b65bffd849
@ -104,6 +104,12 @@ BEACON_EXIT_CAR = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_dev_track(mock_device_tracker_conf):
|
||||
"""Mock device tracker config loading."""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def geofency_client(loop, hass, hass_client):
|
||||
"""Geofency mock client."""
|
||||
|
@ -33,6 +33,12 @@ LOCATION_MESSAGE = {
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_dev_track(mock_device_tracker_conf):
|
||||
"""Mock device tracker config loading."""
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_client(hass, aiohttp_client):
|
||||
"""Start the Hass HTTP component."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user