From ba0cd2cf4845d4720a1a8b4172682d281e1ee3cb Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 8 Nov 2018 14:06:31 -0800 Subject: [PATCH 1/2] Test batch (un)install --- test/runtests.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 66e859a..18872d6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -48,3 +48,15 @@ Conda.add_channel("foo", env) Conda.rm_channel("foo", env) @test Conda.channels(env) == ["defaults"] + +@testset "Batch install and uninstall" begin + Conda.add(["wget", "zip"], env) + installed = Conda._installed_packages(env) + @test "wget" ∈ installed + @test "zip" ∈ installed + + Conda.rm(["wget", "zip"], env) + installed = Conda._installed_packages(env) + @test "wget" ∉ installed + @test "zip" ∉ installed +end From 86bb25c3348517664d0f358146e351c8a225b552 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 8 Nov 2018 18:51:30 -0800 Subject: [PATCH 2/2] Use small Python packages for testing --- test/runtests.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 18872d6..06a92b7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -50,13 +50,13 @@ Conda.rm_channel("foo", env) @test Conda.channels(env) == ["defaults"] @testset "Batch install and uninstall" begin - Conda.add(["wget", "zip"], env) + Conda.add(["affine", "ansi2html"], env) installed = Conda._installed_packages(env) - @test "wget" ∈ installed - @test "zip" ∈ installed + @test "affine" ∈ installed + @test "ansi2html" ∈ installed - Conda.rm(["wget", "zip"], env) + Conda.rm(["affine", "ansi2html"], env) installed = Conda._installed_packages(env) - @test "wget" ∉ installed - @test "zip" ∉ installed + @test "affine" ∉ installed + @test "ansi2html" ∉ installed end