Skip to content

Commit 547090b

Browse files
Migrate TestUninstall from test_lib.py to lib_test.go
1 parent b78bba1 commit 547090b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

internal/integrationtest/lib/lib_test.go

+12
Original file line numberDiff line numberDiff line change
@@ -584,3 +584,15 @@ func TestUpdateIndex(t *testing.T) {
584584
require.NoError(t, err)
585585
require.Contains(t, string(stdout), "Downloading index: library_index.tar.bz2 downloaded")
586586
}
587+
588+
func TestUninstall(t *testing.T) {
589+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
590+
defer env.CleanUp()
591+
592+
libs := []string{"Arduino_BQ24195", "WiFiNINA"}
593+
_, _, err := cli.Run("lib", "install", libs[0], libs[1])
594+
require.NoError(t, err)
595+
596+
_, _, err = cli.Run("lib", "uninstall", libs[0], libs[1])
597+
require.NoError(t, err)
598+
}

test/test_lib.py

-8
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ def test_install_with_zip_path(run_command, data_dir, downloads_dir):
146146
assert lib_install_dir / "README.adoc" in files
147147

148148

149-
def test_uninstall(run_command):
150-
libs = ["Arduino_BQ24195", "WiFiNINA"]
151-
assert run_command(["lib", "install"] + libs)
152-
153-
result = run_command(["lib", "uninstall"] + libs)
154-
assert result.ok
155-
156-
157149
def test_uninstall_spaces(run_command):
158150
key = "LiquidCrystal I2C"
159151
assert run_command(["lib", "install", key])

0 commit comments

Comments
 (0)