@@ -173,13 +173,13 @@ def test_install_git_url_and_zip_path_flags_visibility(run_command, data_dir, do
173
173
git_url = "https://github.com/arduino-libraries/WiFi101.git"
174
174
res = run_command (f"lib install --git-url { git_url } " )
175
175
assert res .failed
176
- assert "Error: unknown flag: --git-url" in res .stderr
176
+ assert "--git-url and --zip-path are disabled by default, for more information see: " in res .stderr
177
177
178
178
assert run_command (
"lib download [email protected] " )
179
179
zip_path = Path (downloads_dir , "libraries" , "AudioZero-1.0.0.zip" )
180
180
res = run_command (f"lib install --zip-path { zip_path } " )
181
181
assert res .failed
182
- assert "Error: unknown flag: --zip-path" in res .stderr
182
+ assert "--git-url and --zip-path are disabled by default, for more information see: " in res .stderr
183
183
184
184
env = {
185
185
"ARDUINO_DATA_DIR" : data_dir ,
@@ -190,11 +190,11 @@ def test_install_git_url_and_zip_path_flags_visibility(run_command, data_dir, do
190
190
# Verifies installation is successful when flags are enabled with env var
191
191
res = run_command (f"lib install --git-url { git_url } " , custom_env = env )
192
192
assert res .ok
193
- assert "--git-url and --zip-path flags are dangerous , use it at your own risk." in res .stdout
193
+ assert "--git-url and --zip-path flags allow installing untrusted files , use it at your own risk." in res .stdout
194
194
195
195
res = run_command (f"lib install --zip-path { zip_path } " , custom_env = env )
196
196
assert res .ok
197
- assert "--git-url and --zip-path flags are dangerous , use it at your own risk." in res .stdout
197
+ assert "--git-url and --zip-path flags allow installing untrusted files , use it at your own risk." in res .stdout
198
198
199
199
# Uninstall libraries to install them again
200
200
assert run_command ("lib uninstall WiFi101 AudioZero" )
@@ -204,11 +204,11 @@ def test_install_git_url_and_zip_path_flags_visibility(run_command, data_dir, do
204
204
205
205
res = run_command (f"lib install --git-url { git_url } " )
206
206
assert res .ok
207
- assert "--git-url and --zip-path flags are dangerous , use it at your own risk." in res .stdout
207
+ assert "--git-url and --zip-path flags allow installing untrusted files , use it at your own risk." in res .stdout
208
208
209
209
res = run_command (f"lib install --zip-path { zip_path } " )
210
210
assert res .ok
211
- assert "--git-url and --zip-path flags are dangerous , use it at your own risk." in res .stdout
211
+ assert "--git-url and --zip-path flags allow installing untrusted files , use it at your own risk." in res .stdout
212
212
213
213
214
214
def test_install_with_git_url (run_command , data_dir , downloads_dir ):
@@ -224,11 +224,11 @@ def test_install_with_git_url(run_command, data_dir, downloads_dir):
224
224
# Test git-url library install
225
225
res = run_command ("lib install --git-url https://github.com/arduino-libraries/WiFi101.git" )
226
226
assert res .ok
227
- assert "--git-url and --zip-path flags are dangerous , use it at your own risk." in res .stdout
227
+ assert "--git-url and --zip-path flags allow installing untrusted files , use it at your own risk." in res .stdout
228
228
229
229
# Test failing-install as repository already exists
230
230
res = run_command ("lib install --git-url https://github.com/arduino-libraries/WiFi101.git" )
231
- assert "--git-url and --zip-path flags are dangerous , use it at your own risk." in res .stdout
231
+ assert "--git-url and --zip-path flags allow installing untrusted files , use it at your own risk." in res .stdout
232
232
assert "Error installing Git Library: repository already exists" in res .stderr
233
233
234
234
@@ -249,7 +249,7 @@ def test_install_with_zip_path(run_command, data_dir, downloads_dir):
249
249
# Test zip-path install
250
250
res = run_command (f"lib install --zip-path { zip_path } " )
251
251
assert res .ok
252
- assert "--git-url and --zip-path flags are dangerous , use it at your own risk." in res .stdout
252
+ assert "--git-url and --zip-path flags allow installing untrusted files , use it at your own risk." in res .stdout
253
253
254
254
255
255
def test_update_index (run_command ):
0 commit comments