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 0b0b968

Browse files
author
vinay-lanka
committed
Added tests
1 parent 7ce434f commit 0b0b968

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎test/test_lib.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ def test_install(run_command):
6868
in result.stderr
6969
)
7070

71+
def test_install_flags(run_command):
72+
# Test git url library install
73+
assert run_command("lib install Wifi101 --git-url https://github.com/arduino-libraries/WiFi101.git")
74+
75+
# Test failing-install as repository already exists
76+
result = run_command("lib install Wifi101 --git-url https://github.com/arduino-libraries/WiFi101.git")
77+
assert (
78+
"Error installing Git Library repository already exists"
79+
in result.stderr
80+
)
81+
7182
def test_update_index(run_command):
7283
result = run_command("lib update-index")
7384
assert result.ok

0 commit comments

Comments
(0)

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