mirror of
https://github.com/home-assistant/core.git
synced 2025-11-05 17:09:32 +00:00
Fix up docstring for tests (#5090)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
"""Tests for the Home Assistant Websocket API."""
|
||||
import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
@@ -213,7 +214,7 @@ def test_subscribe_unsubscribe_events(hass, websocket_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_get_states(hass, websocket_client):
|
||||
""" Test get_states command."""
|
||||
"""Test get_states command."""
|
||||
hass.states.async_set('greeting.hello', 'world')
|
||||
hass.states.async_set('greeting.bye', 'universe')
|
||||
|
||||
@@ -239,7 +240,7 @@ def test_get_states(hass, websocket_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_get_services(hass, websocket_client):
|
||||
""" Test get_services command."""
|
||||
"""Test get_services command."""
|
||||
websocket_client.send_json({
|
||||
'id': 5,
|
||||
'type': wapi.TYPE_GET_SERVICES,
|
||||
@@ -254,7 +255,7 @@ def test_get_services(hass, websocket_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_get_config(hass, websocket_client):
|
||||
""" Test get_config command."""
|
||||
"""Test get_config command."""
|
||||
websocket_client.send_json({
|
||||
'id': 5,
|
||||
'type': wapi.TYPE_GET_CONFIG,
|
||||
@@ -269,7 +270,7 @@ def test_get_config(hass, websocket_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_get_panels(hass, websocket_client):
|
||||
""" Test get_panels command."""
|
||||
"""Test get_panels command."""
|
||||
frontend.register_built_in_panel(hass, 'map', 'Map',
|
||||
'mdi:account-location')
|
||||
|
||||
@@ -287,7 +288,7 @@ def test_get_panels(hass, websocket_client):
|
||||
|
||||
@asyncio.coroutine
|
||||
def test_ping(websocket_client):
|
||||
""" Test get_panels command."""
|
||||
"""Test get_panels command."""
|
||||
websocket_client.send_json({
|
||||
'id': 5,
|
||||
'type': wapi.TYPE_PING,
|
||||
|
||||
Reference in New Issue
Block a user