forked from platformio/platformio-core
Fix issue with library.properties manifest parser when author email is not specified
This commit is contained in:
1 parent
ea0b462d0b
commit
643f290057
2 files changed
+14
-2
No files matched your search
@@ -161,6 +161,7 @@ customField=Custom Value
|
||||
"architectures=*\n" + contents
|
||||
).as_dict()
|
||||
assert data["platforms"] == ["*"]
|
||||
|
||||
# Platforms specific
|
||||
data = parser.LibraryPropertiesManifestParser(
|
||||
"architectures=avr, esp32\n" + contents
|
||||
@@ -184,7 +185,7 @@ customField=Custom Value
|
||||
"type": "git",
|
||||
}
|
||||
|
||||
# Hope page
|
||||
# Home page
|
||||
data = parser.LibraryPropertiesManifestParser(
|
||||
"url=https://github.com/username/reponame.git\n" + contents
|
||||
).as_dict()
|
||||
@@ -193,6 +194,17 @@ customField=Custom Value
|
||||
"url": "https://github.com/username/reponame.git",
|
||||
}
|
||||
|
||||
# Author + Maintainer
|
||||
data = parser.LibraryPropertiesManifestParser(
|
||||
"""
|
||||
author=Rocket Scream Electronics
|
||||
maintainer=Rocket Scream Electronics
|
||||
"""
|
||||
).as_dict()
|
||||
assert data["authors"] == [
|
||||
{"name": "Rocket Scream Electronics", "maintainer": True}
|
||||
]
|
||||
|
||||
|
||||
def test_library_json_schema():
|
||||
contents = """
|
||||
|
||||
Reference in new issue
Block a user