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

Avoid keeping config dir in path (#107760)

This commit is contained in:
Joakim Plate
2024-01-16 13:38:47 +01:00
committed by GitHub
parent 7fe6fc987b
commit 523352c97e
3 changed files with 18 additions and 2 deletions

View File

@@ -873,3 +873,14 @@ async def test_async_suggest_report_issue(
)
== report_issue
)
async def test_config_folder_not_in_path(hass):
"""Test that config folder is not in path."""
# Verify that we are unable to import this file from top level
with pytest.raises(ImportError):
import check_config_not_in_path # noqa: F401
# Verify that we are able to load the file with absolute path
import tests.testing_config.check_config_not_in_path # noqa: F401