Add check_config helper (#24557)
* check_config * no ignore * tests * try tests again
This commit is contained in:
parent
236debb455
commit
2e26f0bd2b
7 changed files with 342 additions and 178 deletions
|
@ -5,7 +5,7 @@ from unittest.mock import patch
|
|||
|
||||
import homeassistant.scripts.check_config as check_config
|
||||
from homeassistant.config import YAML_CONFIG_FILE
|
||||
from tests.common import patch_yaml_files, get_test_config_dir
|
||||
from tests.common import get_test_config_dir, patch_yaml_files
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -34,7 +34,6 @@ def normalize_yaml_files(check_dict):
|
|||
for key in sorted(check_dict['yaml_files'].keys())]
|
||||
|
||||
|
||||
# pylint: disable=no-self-use,invalid-name
|
||||
@patch('os.path.isfile', return_value=True)
|
||||
def test_bad_core_config(isfile_patch, loop):
|
||||
"""Test a bad core config setup."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue