Skip to content

Commit

Permalink
Mock out device tracker configuration loading funcs in Geofency + Own…
Browse files Browse the repository at this point in the history
…Tracks (#18968)

* Mock out device tracker configuration loading funcs

* Update test_init.py

* Update test_init.py
  • Loading branch information
balloob authored Dec 4, 2018
1 parent ab7c52a commit b65bffd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/components/geofency/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@
}


@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."""
Expand Down
6 changes: 6 additions & 0 deletions tests/components/owntracks/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
}


@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."""
Expand Down

0 comments on commit b65bffd

Please sign in to comment.