Spelling, grammar etc fixes (#14432)
* Spelling, grammar etc fixes * s/an api data/data of an api/
This commit is contained in:
1 parent
843789528e
commit
234bf1f0ea
15 files changed
+20
-20
No files matched your search
@@ -96,7 +96,7 @@ async def test_switch_set_state(hass):
|
||||
|
||||
@pytest.mark.parametrize('config', [{}, {ATTR_CODE: None}])
|
||||
async def test_no_alarm_code(hass, config):
|
||||
"""Test accessory if security_system doesn't require a alarm_code."""
|
||||
"""Test accessory if security_system doesn't require an alarm_code."""
|
||||
entity_id = 'alarm_control_panel.test'
|
||||
|
||||
hass.states.async_set(entity_id, None)
|
||||
|
||||
@@ -14,7 +14,7 @@ from homeassistant.components.media_player.blackbird import (
|
||||
|
||||
|
||||
class AttrDict(dict):
|
||||
"""Helper clas for mocking attributes."""
|
||||
"""Helper class for mocking attributes."""
|
||||
|
||||
def __setattr__(self, name, value):
|
||||
"""Set attribute."""
|
||||
|
||||
@@ -38,7 +38,7 @@ class TestSigfoxSensor(unittest.TestCase):
|
||||
self.hass.stop()
|
||||
|
||||
def test_invalid_credentials(self):
|
||||
"""Test for a invalid credentials."""
|
||||
"""Test for invalid credentials."""
|
||||
with requests_mock.Mocker() as mock_req:
|
||||
url = re.compile(API_URL + 'devicetypes')
|
||||
mock_req.get(url, text='{}', status_code=401)
|
||||
@@ -47,7 +47,7 @@ class TestSigfoxSensor(unittest.TestCase):
|
||||
assert len(self.hass.states.entity_ids()) == 0
|
||||
|
||||
def test_valid_credentials(self):
|
||||
"""Test for a valid credentials."""
|
||||
"""Test for valid credentials."""
|
||||
with requests_mock.Mocker() as mock_req:
|
||||
url1 = re.compile(API_URL + 'devicetypes')
|
||||
mock_req.get(url1, text='{"data":[{"id":"fake_type"}]}',
|
||||
|
||||
@@ -8,7 +8,7 @@ from tests.common import MockDependency
|
||||
|
||||
|
||||
async def test_invalid_path_setup(hass):
|
||||
"""Test that a invalid path is not setup."""
|
||||
"""Test that an invalid path is not setup."""
|
||||
assert not await async_setup_component(
|
||||
hass, folder_watcher.DOMAIN, {
|
||||
folder_watcher.DOMAIN: {
|
||||
|
||||
@@ -8,7 +8,7 @@ import homeassistant.components.prometheus as prometheus
|
||||
|
||||
@pytest.fixture
|
||||
def prometheus_client(loop, hass, aiohttp_client):
|
||||
"""Initialize a aiohttp_client with Prometheus component."""
|
||||
"""Initialize an aiohttp_client with Prometheus component."""
|
||||
assert loop.run_until_complete(async_setup_component(
|
||||
hass,
|
||||
prometheus.DOMAIN,
|
||||
|
||||
Reference in new issue
Block a user