Skip to content

Commit 35834c5

Browse files
committed
Added tests
1 parent b9fdfb6 commit 35834c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_lib.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ def test_install_library_with_dependencies(run_command):
246246
assert "MD_Parola" in installed_libraries
247247
assert "MD_MAX72XX" in installed_libraries
248248

249+
# Try upgrading with --no-overwrite (should fail) and without --no-overwrite (should succeed)
250+
res = run_command(["lib", "install", "MD_Parola@3.6.1", "--no-overwrite"])
251+
assert res.failed
252+
assert run_command(["lib", "install", "MD_Parola@3.6.1"])
253+
249254

250255
def test_install_no_deps(run_command):
251256
assert run_command(["update"])

0 commit comments

Comments
 (0)