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