Skip to content

Commit 96a2df7

Browse files
author
vinay-lanka
committed
Added tests
1 parent 6240477 commit 96a2df7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: test/test_lib.py

+11
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)