Move imports to top for seventeentrack (#29264)

* Move imports to top for seventeentrack

* Updated patch target path in test_sensor.py
This commit is contained in:
springstan authored and Aaron Bach committed 2019-12-01 10:19:17 -07:00
1 parent 9927f6c17d
commit 22225cea4d
2 files changed
+8 -6

No files matched your search

@@ -119,7 +119,10 @@ def fixture_mock_py17track():
@pytest.fixture(autouse=True, name="mock_client")
def fixture_mock_client(mock_py17track):
"""Mock py17track client."""
with mock.patch("py17track.Client", new=ClientMock):
with mock.patch(
"homeassistant.components.seventeentrack.sensor.SeventeenTrackClient",
new=ClientMock,
):
yield
ProfileMock.reset()