Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
a0c5b7f3
Unverified
Commit
a0c5b7f3
authored
May 04, 2020
by
Roberto Sora
Committed by
GitHub
May 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip changelog] Fix flacky board details test (#682)
parent
0fe7635c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
test/test_board.py
test/test_board.py
+12
-3
No files found.
test/test_board.py
View file @
a0c5b7f3
...
...
@@ -400,6 +400,15 @@ def test_board_details(run_command):
result
=
run_command
(
"board details arduino:samd:nano_33_iot --format json"
)
assert
result
.
ok
# Sort everything before compare
sorted_result
=
json
.
dumps
(
json
.
loads
(
result
.
stdout
),
sort_keys
=
True
)
sorted_gold_board_details
=
json
.
dumps
(
json
.
loads
(
gold_board_details
),
sort_keys
=
True
)
assert
sorted_result
==
sorted_gold_board_details
result
=
json
.
loads
(
result
.
stdout
)
gold_board_details
=
json
.
loads
(
gold_board_details
)
assert
result
[
"fqbn"
]
==
gold_board_details
[
"fqbn"
]
assert
result
[
"name"
]
==
gold_board_details
[
"name"
]
assert
result
[
"version"
]
==
gold_board_details
[
"version"
]
assert
result
[
"propertiesId"
]
==
gold_board_details
[
"propertiesId"
]
assert
result
[
"official"
]
==
gold_board_details
[
"official"
]
assert
result
[
"package"
]
==
gold_board_details
[
"package"
]
assert
result
[
"platform"
]
==
gold_board_details
[
"platform"
]
for
usb_id
in
gold_board_details
[
"identification_pref"
]:
assert
usb_id
in
result
[
"identification_pref"
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment