ManifetPatrser fixes (#3080)

* Skip broken examples declaration

* Allow dots in keywords

* Allow "+" in keywords
This commit is contained in:
Ivan Kravets authored and GitHub committed 2019-10-03 14:55:04 +03:00
1 parent 8febdc19ea
commit 76865a1730
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -427,7 +427,9 @@ def test_package_json_model():
def test_examples_from_dir(tmpdir_factory):
package_dir = tmpdir_factory.mktemp("project")
package_dir.join("library.json").write('{"name": "pkg", "version": "1.0.0"}')
package_dir.join("library.json").write(
'{"name": "pkg", "version": "1.0.0", "examples": ["examples/*/*.pde"]}'
)
examples_dir = package_dir.mkdir("examples")
# PlatformIO project #1