File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ require (
43
43
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45
44
44
golang.org/x/net v0.0.0-20190311183353-d8887717615a
45
45
golang.org/x/text v0.3.0
46
+ google.golang.org/appengine v1.4.0 // indirect
46
47
google.golang.org/genproto v0.0.0-20190327125643-d831d65fe17d // indirect
47
48
google.golang.org/grpc v1.21.1
48
49
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
Original file line number Diff line number Diff line change @@ -44,7 +44,15 @@ def test_core_listall(run_command):
44
44
def test_core_search (run_command ):
45
45
url = "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/test_index.json"
46
46
assert run_command ("core update-index --additional-urls={}" .format (url ))
47
- # default search
47
+ # list all
48
+ result = run_command ("core search" )
49
+ assert result .ok
50
+ assert 3 < len (result .stdout .splitlines ())
51
+ result = run_command ("core search --format json" )
52
+ assert result .ok
53
+ data = json .loads (result .stdout )
54
+ assert 1 < len (data )
55
+ # search a specific core
48
56
result = run_command ("core search avr" )
49
57
assert result .ok
50
58
assert 2 < len (result .stdout .splitlines ())
You can’t perform that action at this time.
0 commit comments