Skip to content

Commit 4ec3bc5

Browse files
author
Massimiliano Pippi
committed
add test for #443
1 parent 4f3fec6 commit 4ec3bc5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/test_lib.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,21 @@ def test_update_index(run_command):
7070
)
7171

7272

73-
def test_remove(run_command):
74-
libs = ['"AzureIoTProtocol_MQTT"', '"CMMC MQTT Connector"', '"WiFiNINA"']
73+
def test_uninstall(run_command):
74+
libs = ['"AzureIoTProtocol_MQTT"', '"WiFiNINA"']
7575
assert run_command("lib install {}".format(" ".join(libs)))
7676

7777
result = run_command("lib uninstall {}".format(" ".join(libs)))
7878
assert result.ok
7979

80+
def test_uninstall_spaces(run_command):
81+
key = '"LiquidCrystal I2C"'
82+
assert run_command("lib install {}".format(key))
83+
assert run_command("lib uninstall {}".format(key))
84+
result = run_command("lib list --format json")
85+
assert result.ok
86+
assert len(json.loads(result.stdout)) == 0
87+
8088

8189
def test_search(run_command):
8290
assert run_command("lib update-index")

0 commit comments

Comments
 (0)