mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
Merge branch 'esp8266-native-build-spec' into esp8266-native-ninja-emission
This commit is contained in:
@@ -745,3 +745,15 @@ def test_dependency_requested_top_level_is_not_a_drop(
|
||||
cache_key="arduino8266",
|
||||
)
|
||||
assert "is not bundled with the framework" not in caplog.text
|
||||
|
||||
|
||||
def test_bundled_library_non_dict_manifest_skips_probes_and_raises(
|
||||
tmp_path: Path,
|
||||
) -> None:
|
||||
"""A bundled library.json that is a JSON array skips the dependency and
|
||||
extraScript probes and fails in _library_info naming the library."""
|
||||
framework = _make_framework(tmp_path)
|
||||
wire = framework / "libraries" / "Wire"
|
||||
(wire / "library.json").write_text('["not", "a", "manifest"]')
|
||||
with pytest.raises(EsphomeError, match="Library Wire has a malformed manifest"):
|
||||
component._bundled_library(framework, "Wire")
|
||||
|
||||
Reference in New Issue
Block a user