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

test/test_lib.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,17 @@ 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+
155166
def test_update_index(run_command):
156167
result = run_command("lib update-index")
157168
assert result.ok

0 commit comments

Comments
 (0)