Skip to content

Commit

Permalink
test absence of @warn for start on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
disberd committed Jan 3, 2025
1 parent 7e4b9b0 commit 7105df4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import Pkg
@test_nowarn @eval using PlotlyKaleido

@testset "Start" begin
@test_nowarn PlotlyKaleido.start()
if Sys.iswindows()
# We use @test_logs without log patterns to test that no @warn is thrown, as specified in the docstring of `@test_logs`
@test_logs PlotlyKaleido.start()
else
@test_nowarn PlotlyKaleido.start()
end
@test PlotlyKaleido.is_running()
end

Expand Down

0 comments on commit 7105df4

Please sign in to comment.