mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fix tests
This commit is contained in:
@ -608,7 +608,6 @@ class LibraryPropertiesManifestParser(BaseManifestParser):
|
||||
return None
|
||||
|
||||
def _parse_export(self):
|
||||
result = {}
|
||||
include = None
|
||||
if self.remote_url:
|
||||
url_attrs = urlparse(self.remote_url)
|
||||
@ -621,8 +620,8 @@ class LibraryPropertiesManifestParser(BaseManifestParser):
|
||||
or None
|
||||
)
|
||||
if include:
|
||||
result["include"] = [include]
|
||||
return result
|
||||
return dict(include=[include])
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def _parse_dependencies(raw):
|
||||
|
@ -220,9 +220,6 @@ includes=Arduino.h, Arduino Space.hpp
|
||||
"description": "This is Arduino library",
|
||||
"sentence": "This is Arduino library",
|
||||
"frameworks": ["arduino"],
|
||||
"export": {
|
||||
"exclude": ["extras", "docs", "tests", "test", "*.doxyfile", "*.pdf"]
|
||||
},
|
||||
"authors": [
|
||||
{"name": "SomeAuthor", "email": "info@author.com"},
|
||||
{"name": "Maintainer Author", "maintainer": True},
|
||||
@ -270,7 +267,6 @@ includes=Arduino.h, Arduino Space.hpp
|
||||
),
|
||||
).as_dict()
|
||||
assert data["export"] == {
|
||||
"exclude": ["extras", "docs", "tests", "test", "*.doxyfile", "*.pdf"],
|
||||
"include": ["libraries/TestPackage"],
|
||||
}
|
||||
assert data["repository"] == {
|
||||
@ -465,9 +461,6 @@ depends=First Library (=2.0.0), Second Library (>=1.2.0), Third
|
||||
"frameworks": ["arduino"],
|
||||
"platforms": ["atmelavr", "atmelsam"],
|
||||
"version": "1.19.1",
|
||||
"export": {
|
||||
"exclude": ["extras", "docs", "tests", "test", "*.doxyfile", "*.pdf"]
|
||||
},
|
||||
"authors": [
|
||||
{"maintainer": True, "email": "olikraus@gmail.com", "name": "oliver"}
|
||||
],
|
||||
@ -538,9 +531,6 @@ includes=MozziGuts.h
|
||||
"platforms": ["*"],
|
||||
"frameworks": ["arduino"],
|
||||
"headers": ["MozziGuts.h"],
|
||||
"export": {
|
||||
"exclude": ["extras", "docs", "tests", "test", "*.doxyfile", "*.pdf"]
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"maintainer": True,
|
||||
|
Reference in New Issue
Block a user