Grammar and spelling fixes (#16065)

This commit is contained in:
Ville Skyttä authored and Fabian Affolter committed 2018-08-19 22:29:08 +02:00
1 parent 9e1fa7ef42
commit dbd0763f83
244 files changed
+453 -453

No files matched your search

+3 -3
View File
@@ -34,7 +34,7 @@ class TestSetupCamera:
"""Test class for setup camera."""
def setup_method(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 teardown_method(self):
@@ -42,7 +42,7 @@ class TestSetupCamera:
self.hass.stop()
def test_setup_component(self):
"""Setup demo platform on camera component."""
"""Set up demo platform on camera component."""
config = {
camera.DOMAIN: {
'platform': 'demo'
@@ -57,7 +57,7 @@ class TestGetImage:
"""Test class for camera."""
def setup_method(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()
setup_component(
+4 -4
View File
@@ -17,7 +17,7 @@ class TestUVCSetup(unittest.TestCase):
"""Test the UVC camera platform."""
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 tearDown(self):
@@ -134,7 +134,7 @@ class TestUVCSetup(unittest.TestCase):
@mock.patch.object(uvc, 'UnifiVideoCamera')
@mock.patch('uvcclient.nvr.UVCRemote')
def setup_nvr_errors_during_indexing(self, error, mock_remote, mock_uvc):
"""Setup test for NVR errors during indexing."""
"""Set up test for NVR errors during indexing."""
config = {
'platform': 'uvc',
'nvr': 'foo',
@@ -163,7 +163,7 @@ class TestUVCSetup(unittest.TestCase):
@mock.patch('uvcclient.nvr.UVCRemote.__init__')
def setup_nvr_errors_during_initialization(self, error, mock_remote,
mock_uvc):
"""Setup test for NVR errors during initialization."""
"""Set up test for NVR errors during initialization."""
config = {
'platform': 'uvc',
'nvr': 'foo',
@@ -195,7 +195,7 @@ class TestUVC(unittest.TestCase):
"""Test class for UVC."""
def setup_method(self, method):
"""Setup the mock camera."""
"""Set up the mock camera."""
self.nvr = mock.MagicMock()
self.uuid = 'uuid'
self.name = 'name'