Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Mar 13, 2021
1 parent 2423229 commit 1fc486f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/new.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1774,17 +1774,20 @@ end
end
isolate() do
Pkg.REPLMode.TEST_MODE[] = true
api, opts = first(Pkg.pkg"pin --all")
api, args, opts = first(Pkg.pkg"pin --all")
@test api == Pkg.pin
@test opts[:all_pkgs] == true
@test args == Pkg.PackageSpec[]
@test opts == Dict(:all_pkgs => true)

api, opts = first(Pkg.pkg"free --all")
api, args, opts = first(Pkg.pkg"free --all")
@test api == Pkg.free
@test opts[:all_pkgs] == true
@test args == Pkg.PackageSpec[]
@test opts == Dict(:all_pkgs => true)

api, opts = first(Pkg.pkg"rm --all")
api, args, opts = first(Pkg.pkg"rm --all")
@test api == Pkg.rm
@test opts[:all_pkgs] == true
@test args == Pkg.PackageSpec[]
@test opts == Dict(:all_pkgs => true)
end
end

Expand Down

0 comments on commit 1fc486f

Please sign in to comment.