File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ require (
4343 go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45
4444 golang.org/x/net v0.0.0-20190311183353-d8887717615a
4545 golang.org/x/text v0.3.0
46+ google.golang.org/appengine v1.4.0 // indirect
4647 google.golang.org/genproto v0.0.0-20190327125643-d831d65fe17d // indirect
4748 google.golang.org/grpc v1.21.1
4849 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):
4444def test_core_search (run_command ):
4545 url = "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/test_index.json"
4646 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
4856 result = run_command ("core search avr" )
4957 assert result .ok
5058 assert 2 < len (result .stdout .splitlines ())
You can’t perform that action at this time.
0 commit comments