From ebf6e6bafe40627c95adb179d26184d231394727 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 20 Oct 2020 15:51:26 +0200 Subject: [PATCH] add tests --- test/runtests.jl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 4daff777..a3fb3be4 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -11,6 +11,19 @@ import GeometryTypes, GeometryBasics using Dates using RecipesBase +# NOTE: you can run this test only once +@testset "Plotly standalone" begin + @test_throws UndefRefError Plots.plotly_local_file_path[] + temp = Plots.use_local_dependencies[] + withenv("PLOTS_HOST_DEPENDENCY_LOCAL" => true) do + Plots.__init__() + @test Plots.plotly_local_file_path[] isa String + @test isfile(Plots.plotly_local_file_path[]) + @test Plots.use_local_dependencies[] = true + end + Plots.use_local_dependencies[] = temp +end # testset + include("test_defaults.jl") include("test_axes.jl") include("test_axis_letter.jl")