mirror of
https://github.com/home-assistant/core.git
synced 2026-10-05 16:27:34 +01:00
Add check_config helper (#24557)
* check_config * no ignore * tests * try tests again
This commit is contained in:
1 parent
236debb455
commit
2e26f0bd2b
7 files changed
+342
-178
No files matched your search
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user