Skip to content

Commit a6df939

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

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
@@ -152,6 +152,17 @@ def test_install(run_command):
152152
assert "Error resolving dependencies for [email protected]: 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+
155166
def test_update_index(run_command):
156167
result = run_command("lib update-index")
157168
assert result.ok

0 commit comments

Comments
 (0)