Test for circular dependencies using manifests (#22908)
* Integration dependencies * Lint * Lint * Fix one test * Lint * Fix load custom component integration Fix async issue Add circular dependency detection in manifest validation * Fix test * Address review comment * Apply suggestions from code review Co-Authored-By: balloob <paulus@home-assistant.io>
This commit is contained in:
parent
4110bd0acf
commit
cac00f5b26
11 changed files with 314 additions and 89 deletions
|
@ -108,7 +108,7 @@ async def test_async_from_config_file_not_mount_deps_folder(loop):
|
|||
async def test_load_hassio(hass):
|
||||
"""Test that we load Hass.io component."""
|
||||
with patch.dict(os.environ, {}, clear=True):
|
||||
assert bootstrap._get_components(hass, {}) == set()
|
||||
assert bootstrap._get_domains(hass, {}) == set()
|
||||
|
||||
with patch.dict(os.environ, {'HASSIO': '1'}):
|
||||
assert bootstrap._get_components(hass, {}) == {'hassio'}
|
||||
assert bootstrap._get_domains(hass, {}) == {'hassio'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue