mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 18:17:13 +02:00
Fix test
This commit is contained in:
@ -1,3 +0,0 @@
|
||||
[style]
|
||||
blank_line_before_nested_class_or_def = true
|
||||
allow_multiline_lambdas = true
|
@ -162,9 +162,10 @@ def test_module_json_parser():
|
||||
}
|
||||
"""
|
||||
|
||||
mp = parser.ModuleJsonManifestParser(contents)
|
||||
raw_data = parser.ModuleJsonManifestParser(contents).as_dict()
|
||||
raw_data["dependencies"] = sorted(raw_data["dependencies"], key=lambda a: a["name"])
|
||||
assert not jsondiff.diff(
|
||||
mp.as_dict(),
|
||||
raw_data,
|
||||
{
|
||||
"name": "YottaLibrary",
|
||||
"description": "This is Yotta library",
|
||||
@ -178,12 +179,12 @@ def test_module_json_parser():
|
||||
"version": "1.2.3",
|
||||
"repository": {"type": "git", "url": "git@github.com:username/repo.git"},
|
||||
"dependencies": [
|
||||
{"name": "usefulmodule", "version": "^1.2.3", "frameworks": ["mbed"]},
|
||||
{
|
||||
"name": "simplelog",
|
||||
"version": "ARMmbed/simplelog#~0.0.1",
|
||||
"frameworks": ["mbed"],
|
||||
},
|
||||
{"name": "usefulmodule", "version": "^1.2.3", "frameworks": ["mbed"]},
|
||||
],
|
||||
"customField": "Custom Value",
|
||||
},
|
||||
|
Reference in New Issue
Block a user