change fakedata rng in tests

This commit is contained in:
t-bltg
2021-07-23 11:31:30 +02:00
parent cd06648ec3
commit f3aa61293b
5 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -6,7 +6,7 @@ function replace_rand!(ex::Expr)
for arg in ex.args
replace_rand!(arg)
end
if ex.head === :call && ex.args[1] (:rand, :randn)
if ex.head === :call && ex.args[1] (:rand, :randn, :(Plots.fakedata))
pushfirst!(ex.args, ex.args[1])
ex.args[2] = :rng
end
@@ -35,6 +35,7 @@ function image_comparison_tests(
fn = "ref$idx.png"
reffn = reference_file(pkg, idx, _current_plots_version)
newfn = joinpath(reference_path(pkg, _current_plots_version), fn)
@debug example.exprs
# test function
func = (fn, idx) -> begin
+1 -1
View File
@@ -3,6 +3,7 @@ import ImageMagick
using VisualRegressionTests
using Plots
using Random
using StableRNGs
using Test
using TestImages
using FileIO
@@ -11,7 +12,6 @@ using LibGit2
import GeometryBasics
using Dates
using RecipesBase
using StableRNGs
@testset "Plotly standalone" begin
@test_nowarn Plots._init_ijulia_plotting()