Remove extra quotes from docstrings (#14431)
This commit is contained in:
1 parent
ea2c073612
commit
843789528e
21 files changed
+88
-88
No files matched your search
@@ -71,7 +71,7 @@ class TestComponentsDeviceTrackerUnifiDirect(unittest.TestCase):
|
||||
|
||||
@patch('pexpect.pxssh.pxssh')
|
||||
def test_get_device_name(self, mock_ssh):
|
||||
""""Testing MAC matching."""
|
||||
"""Testing MAC matching."""
|
||||
conf_dict = {
|
||||
DOMAIN: {
|
||||
CONF_PLATFORM: 'unifi_direct',
|
||||
@@ -95,7 +95,7 @@ class TestComponentsDeviceTrackerUnifiDirect(unittest.TestCase):
|
||||
@patch('pexpect.pxssh.pxssh.logout')
|
||||
@patch('pexpect.pxssh.pxssh.login')
|
||||
def test_failed_to_log_in(self, mock_login, mock_logout):
|
||||
""""Testing exception at login results in False."""
|
||||
"""Testing exception at login results in False."""
|
||||
from pexpect import exceptions
|
||||
|
||||
conf_dict = {
|
||||
@@ -120,7 +120,7 @@ class TestComponentsDeviceTrackerUnifiDirect(unittest.TestCase):
|
||||
@patch('pexpect.pxssh.pxssh.sendline')
|
||||
def test_to_get_update(self, mock_sendline, mock_prompt, mock_login,
|
||||
mock_logout):
|
||||
""""Testing exception in get_update matching."""
|
||||
"""Testing exception in get_update matching."""
|
||||
conf_dict = {
|
||||
DOMAIN: {
|
||||
CONF_PLATFORM: 'unifi_direct',
|
||||
|
||||
@@ -210,7 +210,7 @@ class TestXiaomiDeviceScanner(unittest.TestCase):
|
||||
@patch('requests.get', side_effect=mocked_requests)
|
||||
@patch('requests.post', side_effect=mocked_requests)
|
||||
def test_invalid_credential(self, mock_get, mock_post):
|
||||
""""Testing invalid credential handling."""
|
||||
"""Testing invalid credential handling."""
|
||||
config = {
|
||||
DOMAIN: xiaomi.PLATFORM_SCHEMA({
|
||||
CONF_PLATFORM: xiaomi.DOMAIN,
|
||||
@@ -224,7 +224,7 @@ class TestXiaomiDeviceScanner(unittest.TestCase):
|
||||
@patch('requests.get', side_effect=mocked_requests)
|
||||
@patch('requests.post', side_effect=mocked_requests)
|
||||
def test_valid_credential(self, mock_get, mock_post):
|
||||
""""Testing valid refresh."""
|
||||
"""Testing valid refresh."""
|
||||
config = {
|
||||
DOMAIN: xiaomi.PLATFORM_SCHEMA({
|
||||
CONF_PLATFORM: xiaomi.DOMAIN,
|
||||
@@ -244,7 +244,7 @@ class TestXiaomiDeviceScanner(unittest.TestCase):
|
||||
@patch('requests.get', side_effect=mocked_requests)
|
||||
@patch('requests.post', side_effect=mocked_requests)
|
||||
def test_token_timed_out(self, mock_get, mock_post):
|
||||
""""Testing refresh with a timed out token.
|
||||
"""Testing refresh with a timed out token.
|
||||
|
||||
New token is requested and list is downloaded a second time.
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user