1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-18 07:45:56 +00:00

[ci] Fix non-component files incorrectly detected as components (#11701)

This commit is contained in:
J. Nick Koston
2025-11-03 21:47:11 -06:00
committed by GitHub
parent 4d2f9db861
commit 980098ca77
2 changed files with 10 additions and 1 deletions

View File

@@ -1093,6 +1093,11 @@ def test_parse_list_components_output(output: str, expected: list[str]) -> None:
("tests/components/", None), # No component name
("esphome/components", None), # No trailing slash
("tests/components", None), # No trailing slash
# Files in component directories that are not components
("tests/components/.gitignore", None), # Hidden file
("tests/components/README.md", None), # Documentation file
("esphome/components/__init__.py", None), # Python init file
("tests/components/main.cpp", None), # File with extension
],
)
def test_get_component_from_path(