From b65bffd849832d08935babd15e012be4e468308c Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 4 Dec 2018 10:45:41 +0100 Subject: [PATCH] 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 --- tests/components/geofency/test_init.py | 6 ++++++ tests/components/owntracks/test_init.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/tests/components/geofency/test_init.py b/tests/components/geofency/test_init.py index c8044b1ad5e..ae90af61ced 100644 --- a/tests/components/geofency/test_init.py +++ b/tests/components/geofency/test_init.py @@ -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.""" diff --git a/tests/components/owntracks/test_init.py b/tests/components/owntracks/test_init.py index ee79c8b9e10..ba362da905a 100644 --- a/tests/components/owntracks/test_init.py +++ b/tests/components/owntracks/test_init.py @@ -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."""