Grammar and spelling fixes (#16065)
This commit is contained in:
1 parent
9e1fa7ef42
commit
dbd0763f83
244 files changed
+453
-453
No files matched your search
@@ -123,7 +123,7 @@ class TestAsyncMediaPlayer(unittest.TestCase):
|
||||
"""Test the media_player module."""
|
||||
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self.player = AsyncMediaPlayer(self.hass)
|
||||
|
||||
@@ -176,7 +176,7 @@ class TestSyncMediaPlayer(unittest.TestCase):
|
||||
"""Test the media_player module."""
|
||||
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self.player = SyncMediaPlayer(self.hass)
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ def get_fake_chromecast_info(host='192.168.178.42', port=8009,
|
||||
|
||||
|
||||
async def async_setup_cast(hass, config=None, discovery_info=None):
|
||||
"""Helper to setup the cast platform."""
|
||||
"""Helper to set up the cast platform."""
|
||||
if config is None:
|
||||
config = {}
|
||||
add_devices = Mock()
|
||||
@@ -62,7 +62,7 @@ async def async_setup_cast(hass, config=None, discovery_info=None):
|
||||
|
||||
async def async_setup_cast_internal_discovery(hass, config=None,
|
||||
discovery_info=None):
|
||||
"""Setup the cast platform and the discovery."""
|
||||
"""Set up the cast platform and the discovery."""
|
||||
listener = MagicMock(services={})
|
||||
|
||||
with patch('pychromecast.start_discovery',
|
||||
@@ -85,7 +85,7 @@ async def async_setup_cast_internal_discovery(hass, config=None,
|
||||
|
||||
async def async_setup_media_player_cast(hass: HomeAssistantType,
|
||||
info: ChromecastInfo):
|
||||
"""Setup the cast platform with async_setup_component."""
|
||||
"""Set up the cast platform with async_setup_component."""
|
||||
chromecast = get_fake_chromecast(info)
|
||||
|
||||
cast.CastStatusListener = MagicMock()
|
||||
|
||||
@@ -25,7 +25,7 @@ class TestDemoMediaPlayer(unittest.TestCase):
|
||||
"""Test the media_player module."""
|
||||
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
def tearDown(self):
|
||||
@@ -227,7 +227,7 @@ class TestMediaPlayerWeb(unittest.TestCase):
|
||||
"""Test the media player web views sensor."""
|
||||
|
||||
def setUp(self):
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
assert setup_component(self.hass, http.DOMAIN, {
|
||||
|
||||
@@ -135,7 +135,7 @@ class TestSonosMediaPlayer(unittest.TestCase):
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
def setUp(self):
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
def monkey_available(self):
|
||||
|
||||
@@ -148,7 +148,7 @@ class TestSoundtouchMediaPlayer(unittest.TestCase):
|
||||
"""Bose Soundtouch test class."""
|
||||
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
logging.disable(logging.CRITICAL)
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ class TestMediaPlayer(unittest.TestCase):
|
||||
"""Test the media_player module."""
|
||||
|
||||
def setUp(self): # pylint: disable=invalid-name
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
|
||||
self.mock_mp_1 = MockMediaPlayer(self.hass, 'mock1')
|
||||
|
||||
@@ -33,7 +33,7 @@ class TestYamahaMediaPlayer(unittest.TestCase):
|
||||
"""Test the Yamaha media player."""
|
||||
|
||||
def setUp(self):
|
||||
"""Setup things to be run when tests are started."""
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self.main_zone = _create_zone_mock('Main zone', 'http://main')
|
||||
self.device = FakeYamahaDevice(
|
||||
|
||||
Reference in new issue
Block a user