mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Type-o
This commit is contained in:
parent
cb3a37691f
commit
297fca9351
@ -1,4 +1,4 @@
|
|||||||
"""The tests for the forecast.io platform."""
|
"""The tests for the WUnderground platform."""
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from homeassistant.components.sensor import wunderground
|
from homeassistant.components.sensor import wunderground
|
||||||
@ -78,7 +78,7 @@ def mocked_requests_get(*args, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
class TestWundergroundSetup(unittest.TestCase):
|
class TestWundergroundSetup(unittest.TestCase):
|
||||||
"""Test the wunderground platform."""
|
"""Test the WUnderground platform."""
|
||||||
|
|
||||||
DEVICES = []
|
DEVICES = []
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ class TestWundergroundSetup(unittest.TestCase):
|
|||||||
|
|
||||||
@unittest.mock.patch('requests.get', side_effect=mocked_requests_get)
|
@unittest.mock.patch('requests.get', side_effect=mocked_requests_get)
|
||||||
def test_setup(self, req_mock):
|
def test_setup(self, req_mock):
|
||||||
"""Test that the component is loaded if passed in PSW Id."""
|
"""Test that the component is loaded if passed in PWS Id."""
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
wunderground.setup_platform(self.hass, VALID_CONFIG_PWS,
|
wunderground.setup_platform(self.hass, VALID_CONFIG_PWS,
|
||||||
self.add_devices, None))
|
self.add_devices, None))
|
||||||
@ -122,7 +122,7 @@ class TestWundergroundSetup(unittest.TestCase):
|
|||||||
|
|
||||||
@unittest.mock.patch('requests.get', side_effect=mocked_requests_get)
|
@unittest.mock.patch('requests.get', side_effect=mocked_requests_get)
|
||||||
def test_sensor(self, req_mock):
|
def test_sensor(self, req_mock):
|
||||||
"""Test the wunderground sensor class and methods."""
|
"""Test the WUnderground sensor class and methods."""
|
||||||
wunderground.setup_platform(self.hass, VALID_CONFIG, self.add_devices,
|
wunderground.setup_platform(self.hass, VALID_CONFIG, self.add_devices,
|
||||||
None)
|
None)
|
||||||
for device in self.DEVICES:
|
for device in self.DEVICES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user