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
01699542
Unverified
Commit
01699542
authored
Mar 04, 2021
by
Silvano Cerza
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip changelog] Fix core integration tests (#1209)
parent
1f5706fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
test/test_core.py
test/test_core.py
+9
-6
No files found.
test/test_core.py
View file @
01699542
...
...
@@ -370,7 +370,8 @@ def test_core_search_manually_installed_cores_not_printed(run_command, data_dir)
res
=
run_command
(
"core search --format json"
)
assert
res
.
ok
cores
=
json
.
loads
(
res
.
stdout
)
assert
len
(
cores
)
==
17
num_cores
=
len
(
cores
)
assert
num_cores
>
0
# Manually installs a core in sketchbooks hardware folder
git_url
=
"https://github.com/arduino/ArduinoCore-avr.git"
...
...
@@ -381,7 +382,7 @@ def test_core_search_manually_installed_cores_not_printed(run_command, data_dir)
res
=
run_command
(
"core search --format json"
)
assert
res
.
ok
cores
=
json
.
loads
(
res
.
stdout
)
assert
len
(
cores
)
==
17
assert
num_cores
==
len
(
cores
)
mapped
=
{
core
[
"ID"
]:
core
for
core
in
cores
}
core_id
=
"arduino-beta-development:avr"
assert
core_id
not
in
mapped
...
...
@@ -394,7 +395,8 @@ def test_core_list_all_manually_installed_core(run_command, data_dir):
res
=
run_command
(
"core list --all --format json"
)
assert
res
.
ok
cores
=
json
.
loads
(
res
.
stdout
)
assert
len
(
cores
)
==
17
num_cores
=
len
(
cores
)
assert
num_cores
>
0
# Manually installs a core in sketchbooks hardware folder
git_url
=
"https://github.com/arduino/ArduinoCore-avr.git"
...
...
@@ -405,7 +407,7 @@ def test_core_list_all_manually_installed_core(run_command, data_dir):
res
=
run_command
(
"core list --all --format json"
)
assert
res
.
ok
cores
=
json
.
loads
(
res
.
stdout
)
assert
len
(
cores
)
==
18
assert
num_cores
+
1
==
len
(
cores
)
mapped
=
{
core
[
"ID"
]:
core
for
core
in
cores
}
expected_core_id
=
"arduino-beta-development:avr"
assert
expected_core_id
in
mapped
...
...
@@ -420,7 +422,8 @@ def test_core_list_updatable_all_flags(run_command, data_dir):
res
=
run_command
(
"core list --all --updatable --format json"
)
assert
res
.
ok
cores
=
json
.
loads
(
res
.
stdout
)
assert
len
(
cores
)
==
17
num_cores
=
len
(
cores
)
assert
num_cores
>
0
# Manually installs a core in sketchbooks hardware folder
git_url
=
"https://github.com/arduino/ArduinoCore-avr.git"
...
...
@@ -431,7 +434,7 @@ def test_core_list_updatable_all_flags(run_command, data_dir):
res
=
run_command
(
"core list --all --updatable --format json"
)
assert
res
.
ok
cores
=
json
.
loads
(
res
.
stdout
)
assert
len
(
cores
)
==
18
assert
num_cores
+
1
==
len
(
cores
)
mapped
=
{
core
[
"ID"
]:
core
for
core
in
cores
}
expected_core_id
=
"arduino-beta-development:avr"
assert
expected_core_id
in
mapped
...
...
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