Tests should all use test HA

This commit is contained in:
Paulus Schoutsen committed 2016-02-14 15:08:23 -08:00
1 parent bade0e0d71
commit 09ab3e95c0
52 files changed
+170 -125

No files matched your search

+3 -2
View File
@@ -9,17 +9,18 @@ from unittest.mock import patch
import pytest
import homeassistant.core as ha
import homeassistant.components.sensor as sensor
import homeassistant.util.dt as dt_util
from tests.common import get_test_home_assistant
@pytest.mark.usefixtures('betamax_session')
class TestSensorYr:
""" Test the Yr sensor. """
def setup_method(self, method):
self.hass = ha.HomeAssistant()
self.hass = get_test_home_assistant()
self.hass.config.latitude = 32.87336
self.hass.config.longitude = 117.22743