1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Disable too-many-* (#4107)

* Disable too-many-* and too-few-public-methods

* Remove globally disabled pylint warnings
This commit is contained in:
Fabian Affolter
2016-10-30 22:18:53 +01:00
committed by GitHub
parent b910a9917d
commit be272ac64a
298 changed files with 271 additions and 570 deletions

View File

@@ -1,5 +1,5 @@
"""The testd for Core components."""
# pylint: disable=protected-access,too-many-public-methods
# pylint: disable=protected-access
import asyncio
import unittest
from unittest.mock import patch, Mock
@@ -21,7 +21,8 @@ from tests.common import (
class TestComponentsCore(unittest.TestCase):
"""Test homeassistant.components module."""
def setUp(self): # pylint: disable=invalid-name
# pylint: disable=invalid-name
def setUp(self):
"""Setup things to be run when tests are started."""
self.hass = get_test_home_assistant()
self.assertTrue(run_coroutine_threadsafe(
@@ -31,7 +32,8 @@ class TestComponentsCore(unittest.TestCase):
self.hass.states.set('light.Bowl', STATE_ON)
self.hass.states.set('light.Ceiling', STATE_OFF)
def tearDown(self): # pylint: disable=invalid-name
# pylint: disable=invalid-name
def tearDown(self):
"""Stop everything that was started."""
self.hass.stop()