Added second condition to skip display checks
This commit is contained in:
parent
352df39026
commit
1fcdac4c9e
@ -13,7 +13,7 @@ using Plots, Test, Dates
|
|||||||
ref_xlims = (x[1].instant.periods.value, x[end].instant.periods.value)
|
ref_xlims = (x[1].instant.periods.value, x[end].instant.periods.value)
|
||||||
@test Plots.ylims(p) == ref_ylims
|
@test Plots.ylims(p) == ref_ylims
|
||||||
@test Plots.xlims(p) == ref_xlims
|
@test Plots.xlims(p) == ref_xlims
|
||||||
@static if haskey(ENV, "APPVEYOR")
|
@static if (haskey(ENV, "APPVEYOR") || haskey(ENV, "CI"))
|
||||||
@info "Skipping display tests on AppVeyor"
|
@info "Skipping display tests on AppVeyor"
|
||||||
else
|
else
|
||||||
@test isa(display(p), Nothing) == true
|
@test isa(display(p), Nothing) == true
|
||||||
@ -30,7 +30,7 @@ end # testset
|
|||||||
p = plot(x,y, xlims=span, widen = false)
|
p = plot(x,y, xlims=span, widen = false)
|
||||||
|
|
||||||
@test Plots.xlims(p) == ref_xlims
|
@test Plots.xlims(p) == ref_xlims
|
||||||
@static if haskey(ENV, "APPVEYOR")
|
@static if (haskey(ENV, "APPVEYOR") || haskey(ENV, "CI"))
|
||||||
@info "Skipping display tests on AppVeyor"
|
@info "Skipping display tests on AppVeyor"
|
||||||
else
|
else
|
||||||
@test isa(display(p), Nothing) == true
|
@test isa(display(p), Nothing) == true
|
||||||
@ -46,7 +46,7 @@ end # testset
|
|||||||
|
|
||||||
p = plot(x,y, xlims=span, widen = false)
|
p = plot(x,y, xlims=span, widen = false)
|
||||||
@test Plots.xlims(p) == ref_xlims
|
@test Plots.xlims(p) == ref_xlims
|
||||||
@static if haskey(ENV, "APPVEYOR")
|
@static if (haskey(ENV, "APPVEYOR") || haskey(ENV, "CI"))
|
||||||
@info "Skipping display tests on AppVeyor"
|
@info "Skipping display tests on AppVeyor"
|
||||||
else
|
else
|
||||||
@test isa(display(p), Nothing) == true
|
@test isa(display(p), Nothing) == true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user