Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8425d79

Browse files
author
Massimiliano Pippi
authored
add a test for search all (#419)
1 parent8f73b78 commit8425d79

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

‎go.mod‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ require (
4343
go.bug.st/serial.v1v0.0.0-20180827123349-5f7892a7bb45
4444
golang.org/x/netv0.0.0-20190311183353-d8887717615a
4545
golang.org/x/textv0.3.0
46+
google.golang.org/appenginev1.4.0// indirect
4647
google.golang.org/genprotov0.0.0-20190327125643-d831d65fe17d// indirect
4748
google.golang.org/grpcv1.21.1
4849
gopkg.in/mgo.v2v2.0.0-20180705113604-9856a29383ce// indirect

‎test/test_board.py‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,15 @@ def test_core_listall(run_command):
4444
deftest_core_search(run_command):
4545
url="https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/test_index.json"
4646
assertrun_command("core update-index --additional-urls={}".format(url))
47-
# default search
47+
# list all
48+
result=run_command("core search")
49+
assertresult.ok
50+
assert3<len(result.stdout.splitlines())
51+
result=run_command("core search --format json")
52+
assertresult.ok
53+
data=json.loads(result.stdout)
54+
assert1<len(data)
55+
# search a specific core
4856
result=run_command("core search avr")
4957
assertresult.ok
5058
assert2<len(result.stdout.splitlines())

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp