DataModels: fix issue when traversing using model fields

This commit is contained in:
Ivan Kravets committed 2019-10-01 18:10:48 +03:00
1 parent a82c4666d4
commit 5b77adccb1
2 files changed
+25 -15

No files matched your search

+2
View File
@@ -210,6 +210,8 @@ def test_library_json_model():
contents, parser.ManifestFileType.LIBRARY_JSON
)
model = ManifestModel(**data.as_dict())
assert model.repository.url == "https://github.com/bblanchon/ArduinoJson.git"
assert model.examples["JsonHttpClient"].files == ["JsonHttpClient.ino"]
assert model == ManifestModel(
**{
"name": "ArduinoJson",