Fix tests

This commit is contained in:
Ivan Kravets
2021-12-18 14:17:22 +02:00
parent a32997ceba
commit 3e0b95e1e1
2 changed files with 2 additions and 13 deletions

View File

@ -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):

View File

@ -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,