Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 (#14557)
* Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 * Pydocstyle D401 fixes
This commit is contained in:
parent
89d856d147
commit
dd9d53c83e
84 changed files with 148 additions and 130 deletions
|
@ -257,7 +257,7 @@ class TestSetup:
|
|||
def test_component_exception_setup(self):
|
||||
"""Test component that raises exception during setup."""
|
||||
def exception_setup(hass, config):
|
||||
"""Setup that raises exception."""
|
||||
"""Raise exception."""
|
||||
raise Exception('fail!')
|
||||
|
||||
loader.set_component(
|
||||
|
@ -269,7 +269,7 @@ class TestSetup:
|
|||
def test_component_setup_with_validation_and_dependency(self):
|
||||
"""Test all config is passed to dependencies."""
|
||||
def config_check_setup(hass, config):
|
||||
"""Setup method that tests config is passed in."""
|
||||
"""Test that config is passed in."""
|
||||
if config.get('comp_a', {}).get('valid', False):
|
||||
return True
|
||||
raise Exception('Config not passed in: {}'.format(config))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue