File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,17 @@ def test_install(run_command):
152
152
assert "Error resolving dependencies for [email protected] : dependency 'MD_MAX72xx' is not available" in result .
stderr
153
153
154
154
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
+
155
166
def test_update_index (run_command ):
156
167
result = run_command ("lib update-index" )
157
168
assert result .ok
You can’t perform that action at this time.
0 commit comments