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

Commit f021cd0

Browse files
author
vinay-lanka
committed
Added tests
1 parent 4b5d61d commit f021cd0

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

‎go.mod‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ require (
2020
github.com/h2non/filetype v1.0.8 // indirect
2121
github.com/imjasonmiller/godice v0.1.2
2222
github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 // indirect
23-
github.com/leonelquinteros/gotext v1.4.0
24-
github.com/marcinbor85/gohex v0.0.0-20200531163658-baab2527a9a2
25-
github.com/juju/testing v0.0.0-20190429233213-dfc56b8c09fc // indirect
2623
github.com/kr/pretty v0.2.0 // indirect
2724
github.com/kr/text v0.2.0 // indirect
25+
github.com/leonelquinteros/gotext v1.4.0
26+
github.com/marcinbor85/gohex v0.0.0-20200531163658-baab2527a9a2
2827
github.com/mattn/go-colorable v0.1.2
2928
github.com/mattn/go-isatty v0.0.8
3029
github.com/mattn/go-runewidth v0.0.9 // indirect
@@ -47,17 +46,13 @@ require (
4746
go.bug.st/relaxed-semver v0.0.0-20190922224835-391e10178d18
4847
go.bug.st/serial v1.1.1
4948
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45 // indirect
50-
golang.org/x/crypto v0.0.0-20200406173513-056763e48d71// indirect
49+
golang.org/x/crypto v0.0.0-20200406173513-056763e48d71
5150
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
52-
golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b // indirect
5351
golang.org/x/text v0.3.2
5452
google.golang.org/grpc v1.27.0
5553
google.golang.org/protobuf v1.25.0
56-
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
57-
gopkg.in/src-d/go-git.v4 v4.13.1
58-
gopkg.in/yaml.v2 v2.3.0
5954
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
6055
gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce // indirect
6156
gopkg.in/src-d/go-git.v4 v4.13.1
62-
gopkg.in/yaml.v2 v2.2.4
57+
gopkg.in/yaml.v2 v2.3.0
6358
)

‎test/test_lib.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,18 @@ def test_install(run_command):
152152
assert "Error resolving dependencies for MD_Parola@3.2.0: dependency 'MD_MAX72xx' is not available" in result.stderr
153153

154154

155+
def test_install_flags(run_command):
156+
# Test git url library install
157+
assert run_command("lib install Wifi101 --git-url https://github.com/arduino-libraries/WiFi101.git")
158+
159+
# Test failing-install as repository already exists
160+
result = run_command("lib install Wifi101 --git-url https://github.com/arduino-libraries/WiFi101.git")
161+
assert (
162+
"Error installing Git Library repository already exists"
163+
in result.stderr
164+
)
165+
166+
155167
def test_update_index(run_command):
156168
result = run_command("lib update-index")
157169
assert result.ok

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /